-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add commit name linter for PRs (#35)
* Add commit name linter * Goodbye angular
- Loading branch information
1 parent
47f1570
commit d58e467
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# https://github.com/satellytes/commitlint-pr-title | ||
name: PR Style | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
branches: [main] | ||
|
||
jobs: | ||
title-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: manually install any commitlint presets that we extend from | ||
run: npm install --no-save @commitlint/config-conventional | ||
|
||
- uses: satellytes/commitlint-pr-title@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
['chore', 'ci', 'docs', 'feat', 'fix', 'refactor', 'revert', 'test'] | ||
], | ||
} | ||
}; |