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.