-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🛠️ build: enable emojis in commit message header and make workflow sc…
…ript run on macos-latest
- Loading branch information
1 parent
3b28db2
commit d5c5345
Showing
3 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
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
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,45 @@ | ||
import type { UserConfig } from '@commitlint/types'; | ||
|
||
const Configuration: UserConfig = { | ||
extends: ['@commitlint/config-conventional'], | ||
parserPreset: { | ||
parserOpts: { | ||
headerPattern: | ||
/^(?<type>.*\s\w*)(?:\((?<scope>.*)\))?!?:\s(?<subject>(?:(?!#).)*(?:(?!\s).))$/, | ||
headerCorrespondence: ['type', 'scope', 'subject'], | ||
}, | ||
}, | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'chore', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test', | ||
'🛠️ build', | ||
'🛠️🚀 build', // new version release | ||
'♻️ chore', | ||
'⚙️ ci', | ||
'📃 docs', | ||
'✨ feat', | ||
'🐞 fix', | ||
'🚀 perf', | ||
'🦄 refactor', | ||
'🗑️ revert', | ||
'🌈 style', | ||
'🧪 test', | ||
], | ||
], | ||
}, | ||
}; | ||
|
||
module.exports = Configuration; |
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