mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
chore(ci): check commit has consecutive spaces
@formatter:off Signed-off-by: slasher <shenjie1@oppo.com>
This commit is contained in:
parent
89e599d7be
commit
7069ce0a84
7
.github/workflows/check_pull_request.yml
vendored
7
.github/workflows/check_pull_request.yml
vendored
@ -65,6 +65,13 @@ jobs:
|
||||
pattern: '^[a-z]+\([a-z0-9_\-\.]+\): .+\n(\n.*)*$'
|
||||
error: 'Title likes `<type>(<scope>): <subject>`'
|
||||
|
||||
- name: Check Title Space
|
||||
uses: sejust/commit-message-checker-with-regex@5bedef5c21ee29bb438572bdb715ad65159264f8 # v0.3.3
|
||||
with:
|
||||
commits: ${{ env.JOB_COMMIT_FILE }}
|
||||
pattern: '^[^ ]+(?: [^ ]+)*\n(\n.*)*$'
|
||||
error: 'Title has consecutive spaces'
|
||||
|
||||
- name: Check Subject Line Length
|
||||
uses: sejust/commit-message-checker-with-regex@5bedef5c21ee29bb438572bdb715ad65159264f8 # v0.3.3
|
||||
with:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user