You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
• This template tries to follow conventional commits format https://www.conventionalcommits.org/en/v1.0.0/
6
+
• The template uses regex to filter commit types into their own headings (this is more than just fixes and features headings)
7
+
• It also uses the replaceText function in package.json to remove the commit type text from the message, because the headers are shown instead.
8
+
9
+
• The text 'Breaking:' or 'Breaking changes:' can be located anywhere in the commit.
10
+
• The types feat:, fix:, chore:, docs:, refactor:, test:, style:, perf: must be at the beginning of the commit subject with an : on end.
11
+
• They can optionally have a scope set to outline the module or component that is affected eg feat(bldAssess):
12
+
• There is a short hash on the end of every commit that is currently commented out so that change log did not grow too long (due to some system's file size limitations). You can uncomment if you wish [`{{shorthash}}`]({{href}})
13
+
14
+
Example Definitions
15
+
• feat: A new feature
16
+
• fix: A bug fix
17
+
• perf: A code change that improves performance
18
+
• refactor: A code change that neither fixes a bug nor adds a feature
19
+
• style: Changes that do not affect the meaning of the code (white-space, formatting, spelling mistakes, missing semi-colons, etc)
20
+
• test: Adding missing tests or correcting existing tests
21
+
• docs: Adding/updating documentation
22
+
• chore: Something like updating a library version, or moving files to be in a better location and updating all file refs
23
+
--}}
24
+
25
+
26
+
{{!-- In package.json need to add this to remove label text from the change log output (because the markdown headers are now used to group them).
27
+
NOTES • Individual brackets have been escaped twice to be Json compliant.
28
+
• For items that define a scope eg feat(bldAssess): We remove the 1st bracket and then re-add it so we can select the right piece of text
29
+
{
30
+
"name": "my-awesome-package",
31
+
32
+
"auto-changelog": {
33
+
"replaceText": {
34
+
"([bB]reaking:)": "",
35
+
"([bB]reaking change:)": "",
36
+
"(^[fF]eat:)": "",
37
+
"(^[fF]eat\\()": "\\(",
38
+
"(^[fF]ix:)": "",
39
+
"(^[fF]ix\\()": "\\(",
40
+
"(^[cC]hore:)": "",
41
+
"(^[cC]hore\\()": "\\(",
42
+
"(^[dD]ocs:)": "",
43
+
"(^[dD]ocs\\()": "\\(",
44
+
"(^[rR]efactor:)": "",
45
+
"(^[rR]efactor\\()": "\\(",
46
+
"(^[tT]est:)": "",
47
+
"(^[tT]est\\()": "\\(",
48
+
"(^[sS]tyle:)": "",
49
+
"(^[sS]tyle\\()": "\\(",
50
+
"(^[pP]erf:)": "",
51
+
"(^[pP]erf\\()": "\\("
52
+
}
53
+
}
54
+
55
+
}
56
+
--}}
57
+
58
+
{{!--
59
+
Regex reminders
60
+
^ = starts with
61
+
\( = ( character (otherwise it is interpreted as a regex lookup group)
{{#custommergesfixescommitsheading='#### General Changes'exclude='[bB]reaking [cC]hange:|[bB]reaking:|^[fF]eat:|^[fF]eat\(|^[fF]ix:|^[fF]ix\(|^[cC]hore:|^[cC]hore\(|^[dD]ocs:|^[dD]ocs\(|^[rR]efactor:|^[rR]efactor\(|^[tT]est:|^[tT]est\(|^[sS]tyle:|^[sS]tyle\(|^[pP]erf:|^[pP]erf\('}}
{{#custommergesfixescommitsheading='#### Chores And Housekeeping'message='^[cC]hore:|^[cC]hore\('exclude='[bB]reaking [cC]hange:|[bB]reaking:'}}
36
+
- {{subject}} ([`{{shorthash}}`]({{href}}))
37
+
{{/custom}}
38
+
39
+
{{#custommergesfixescommitsheading='#### General Changes'exclude='[bB]reaking [cC]hange:|[bB]reaking:|^[fF]eat:|^[fF]eat\(|^[fF]ix:|^[fF]ix\(|^[cC]hore:|^[cC]hore\(|^[dD]ocs:|^[dD]ocs\(|^[rR]efactor:|^[rR]efactor\(|^[tT]est:|^[tT]est\(|^[sS]tyle:|^[sS]tyle\(|^[pP]erf:|^[pP]erf\('}}
0 commit comments