From 49d5b125bdfae66e4038cb70ef0c1556fdea3e6d Mon Sep 17 00:00:00 2001 From: Philippe Weidmann Date: Mon, 20 Jan 2025 08:41:56 +0100 Subject: [PATCH] ci: Prevent commit / PR ending with period Signed-off-by: Philippe Weidmann --- .github/workflows/semantic-commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/semantic-commit.yml b/.github/workflows/semantic-commit.yml index 65da923cc..29bcd36c4 100644 --- a/.github/workflows/semantic-commit.yml +++ b/.github/workflows/semantic-commit.yml @@ -15,8 +15,8 @@ jobs: - name: Check Commit Message uses: gsactions/commit-message-checker@v2 with: - pattern: '^Merge .+|(^(feat|fix|chore|docs|style|refactor|perf|ci|test)(\(.+\))?: [A-Z0-9].+)' - error: 'Commit messages and PR title should match conventional commit convention and start with a majuscule.' + pattern: '^(Merge .+|((feat|fix|chore|docs|style|refactor|perf|ci|test)(\(.+\))?: [A-Z0-9].+[^.\s])$)' + error: 'Commit messages and PR title should match conventional commit convention and start with an uppercase.' excludeDescription: 'true' excludeTitle: 'false' checkAllCommitMessages: 'true'