Skip to content

Commit ebf84b4

Browse files
committed
new: Add chore prefix.
1 parent 5545b65 commit ebf84b4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ prefixing your commit message.
4444
- `style`, `styles` - Updates visual styles, like CSS, or code formatting.
4545
- `security` - Improves security.
4646
- `type`, `types` - Updates type system related syntax (TS/Flow).
47-
- `misc` - Catch all for commits that don't align with other types.
47+
- `chore`, `misc` - Catch all for commits that don't align with other types.
4848

4949
#### Skip
5050

src/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Group } from './types';
22

33
export const COMMIT_FORMAT_PREFIX =
44
// eslint-disable-next-line unicorn/no-unsafe-regex
5-
/^(break|breaking|build|ci|cd|deps|docs|feature|fix|internal|misc|new|patch|perf|release|revert|security|style|styles|test|tests|type|types|update)(?:\(([a-zA-Z0-9\-., ]+)\))?:/u;
5+
/^(break|breaking|build|chore|ci|cd|deps|docs|feature|fix|internal|misc|new|patch|perf|release|revert|security|style|styles|test|tests|type|types|update)(?:\(([a-zA-Z0-9\-., ]+)\))?:/u;
66

77
export const GROUPS: Group[] = [
88
{
@@ -37,7 +37,7 @@ export const GROUPS: Group[] = [
3737
bump: 'patch',
3838
emoji: '📋',
3939
label: 'Misc',
40-
types: ['misc'],
40+
types: ['chore', 'misc'],
4141
},
4242
{
4343
bump: 'major',

src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export type CommitType =
2020
| 'breaking'
2121
| 'build'
2222
| 'cd'
23+
| 'chore'
2324
| 'ci'
2425
| 'deps'
2526
| 'docs'

0 commit comments

Comments
 (0)