mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Meta: Lint commits for unix-style linebreaks
This ensures serenity commits only contain unix-style LF linebreaks
This commit is contained in:
parent
8b06d6d9e8
commit
6f6f30e55a
1 changed files with 8 additions and 0 deletions
8
.github/workflows/cmake.yml
vendored
8
.github/workflows/cmake.yml
vendored
|
@ -242,6 +242,14 @@ jobs:
|
|||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Check linebreaks
|
||||
if: ${{ success() || failure() }}
|
||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||
with:
|
||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||
pattern: '^[^\r]*$'
|
||||
error: 'Commit message contains CRLF line breaks (only unix-style LF linebreaks are allowed)'
|
||||
|
||||
- name: Check Line Length
|
||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue