diff --git a/.github/workflows/lintcommits.yml b/.github/workflows/lintcommits.yml index 17585e3e8c..3c9a9363bf 100644 --- a/.github/workflows/lintcommits.yml +++ b/.github/workflows/lintcommits.yml @@ -26,8 +26,8 @@ jobs: uses: tim-actions/commit-message-checker-with-regex@v0.3.1 with: commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.{0,72}(\n.{0,72})*$' - error: 'Commit message lines are too long (maximum allowed is 72 characters)' + pattern: '^.{0,72}(?:\n(?:(.{0,72})|(.*?([a-z]+:\/\/)?(([a-zA-Z0-9_]|-)+\.)+[a-z]{2,}(:\d+)?([a-zA-Z_0-9@:%\+.~\?&/=]|-)+).*?))*$' + error: 'Commit message lines are too long (maximum allowed is 72 characters, except for URLs)' - name: Check subsystem if: ${{ success() || failure() }}