CI: Skip commit linter line length check on lines that contain URLs

This commit is contained in:
Idan Horowitz 2021-07-23 15:43:15 +03:00 committed by Ali Mohammad Pur
parent 7b88857c5a
commit 34ec0fa8ad
Notes: sideshowbarker 2024-07-18 08:29:37 +09:00

View file

@ -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() }}