From f2436be9be714fcfacead4c85f40b186dce4b49f Mon Sep 17 00:00:00 2001 From: Andreas Maier Date: Thu, 9 Apr 2026 10:30:34 +0200 Subject: [PATCH] Fixed the commit title length check Signed-off-by: Andreas Maier --- .github/workflows/test.yml | 2 +- changes/noissue.29.fix.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changes/noissue.29.fix.rst diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd2e6325..699ffdc0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -146,7 +146,7 @@ jobs: if: github.event_name == 'pull_request' uses: gsactions/commit-message-checker@v2 with: - pattern: '^.{1,80}\n\n(.{0,80}\n)*.{0,80}$' + pattern: '^.{1,80}( \(#[\d]+\))?\n\n(.{0,80}\n)*.{0,80}$' flags: '' excludeDescription: true excludeTitle: true diff --git a/changes/noissue.29.fix.rst b/changes/noissue.29.fix.rst new file mode 100644 index 00000000..df5fcf14 --- /dev/null +++ b/changes/noissue.29.fix.rst @@ -0,0 +1,2 @@ +Fixed the check for the maximum length of the commit message title to +tolerate squash merges, which add the PR number at the end of the line.