Skip to content

Commit a6c492e

Browse files
committed
feat(monorepo): add new commitizens options
1 parent 33520b2 commit a6c492e

File tree

6 files changed

+252
-326
lines changed

6 files changed

+252
-326
lines changed

.cz-config.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
'use strict';
2+
3+
module.exports = {
4+
types: [
5+
{value: 'feat', name: 'feat: A new feature'},
6+
{value: 'fix', name: 'fix: A bug fix'},
7+
{value: 'docs', name: 'docs: Documentation only changes'},
8+
{
9+
value: 'style',
10+
name:
11+
'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
12+
},
13+
{value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature'},
14+
{value: 'perf', name: 'perf: A code change that improves performance'},
15+
{value: 'test', name: 'test: Adding missing tests'},
16+
{
17+
value: 'chore',
18+
name:
19+
'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
20+
},
21+
{value: 'revert', name: 'revert: Revert to a commit'},
22+
{value: 'WIP', name: 'WIP: Work in progress'},
23+
],
24+
25+
scopes: [{name: 'monorepo'}, {name: 'scully'}, {name: 'schematics'}, {name: 'lib'}],
26+
27+
// it needs to match the value for field type. Eg.: 'fix'
28+
/*
29+
scopeOverrides: {
30+
fix: [
31+
{name: 'merge'},
32+
{name: 'style'},
33+
{name: 'e2eTest'},
34+
{name: 'unitTest'}
35+
]
36+
},
37+
*/
38+
// override the messages, defaults are as follows
39+
messages: {
40+
type: "Select the type of change that you're committing:",
41+
scope: '\nDenote the SCOPE of this change (optional):',
42+
// used if allowCustomScopes is true
43+
customScope: 'Denote the SCOPE of this change:',
44+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
45+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
46+
breaking: 'List any BREAKING CHANGES (optional):\n',
47+
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
48+
confirmCommit: 'Are you sure you want to proceed with the commit above?',
49+
},
50+
51+
allowCustomScopes: true,
52+
allowBreakingChanges: ['feat', 'fix', 'perf'],
53+
54+
// limit subject length
55+
subjectLimit: 100,
56+
};

.czrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "path": "cz-customizable" }

.github/workflows/changelog-master.yml renamed to .github/workflows/changelog.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: changelog-master
22

3-
on:
4-
push:
5-
branches:
6-
- master
3+
on: [push]
4+
75
jobs:
86
build:
97
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)