mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1548 from openmv/workflows_commit_checks
github: Check pull request title in workflows.
This commit is contained in:
commit
f46a02a90b
9
.github/workflows/commit.yml
vendored
9
.github/workflows/commit.yml
vendored
@ -2,6 +2,11 @@ name: '📜 Check Commit Messages'
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
|
||||||
@ -15,7 +20,7 @@ jobs:
|
|||||||
pattern: '^[^!]+: [A-Za-z]+.+ .+\.$'
|
pattern: '^[^!]+: [A-Za-z]+.+ .+\.$'
|
||||||
flags: 'gm'
|
flags: 'gm'
|
||||||
error: 'Commit subject line must match the following pattern: <scope>: <description>.'
|
error: 'Commit subject line must match the following pattern: <scope>: <description>.'
|
||||||
excludeTitle: 'true'
|
excludeTitle: 'false'
|
||||||
excludeDescription: 'true'
|
excludeDescription: 'true'
|
||||||
checkAllCommitMessages: 'true'
|
checkAllCommitMessages: 'true'
|
||||||
accessToken: ${{ secrets.GITHUB_TOKEN }}
|
accessToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -24,7 +29,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
pattern: '^[^#].{10,78}$'
|
pattern: '^[^#].{10,78}$'
|
||||||
error: 'Commit subject line maximum line length of 78 characters is exceeded.'
|
error: 'Commit subject line maximum line length of 78 characters is exceeded.'
|
||||||
excludeTitle: 'true'
|
excludeTitle: 'false'
|
||||||
excludeDescription: 'true'
|
excludeDescription: 'true'
|
||||||
checkAllCommitMessages: 'true'
|
checkAllCommitMessages: 'true'
|
||||||
accessToken: ${{ secrets.GITHUB_TOKEN }}
|
accessToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user