Skip to content

Commit

Permalink
Allow for one-liners in overall pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Jun 18, 2023
1 parent 011cdd1 commit ebb5b1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/commit-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
pattern: ^(?!Merge branch 'main' into)
error: 'Ticket branch needs to be rebased onto main'
# Check the full pattern, now that we covered more common mistakes.
- name: Check overall commit Message
if: ${{ success() || failure() }}
uses: gsactions/commit-message-checker@v2
Expand All @@ -71,5 +72,5 @@ jobs:
excludeTitle: 'true' # optional: this excludes the title of a pull request
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
pattern: '^(?![A-Z].*\.)[A-Z].{0,49}\r?\n\r?\n(?:.{0,71}\r?\n)*(?:.{0,71}\.)?\r?\n?$'
error: "Something is not right"
pattern: '^(?![A-Z].*\.)[A-Z].{0,49}(\r?|\r?\n(?:.{0,71}\r?\n)*(?:.{0,71}\.)?\r?\n?)$'
error: "The commit messages do not follow "

0 comments on commit ebb5b1f

Please sign in to comment.