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
Notes:
sideshowbarker
2024-07-18 19:05:03 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/6f6f30e55a5 Pull-request: https://github.com/SerenityOS/serenity/pull/6648
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…
Add table
Reference in a new issue