mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 12:14:19 +00:00
hotfix: add hotfix commit type to semantic-release config
- Add hotfix type to releaseRules (triggers patch release) - Add Hotfixes section to release notes generator - Without this, hotfix: commits are silently ignored by semantic-release
This commit is contained in:
1 parent
b22ea85fca
commit
0473f63623
1 file changed
+2
@@ -20,6 +20,7 @@ const commitAnalyzer = [
|
|||||||
{
|
{
|
||||||
preset: 'conventionalcommits',
|
preset: 'conventionalcommits',
|
||||||
releaseRules: [
|
releaseRules: [
|
||||||
|
{ type: 'hotfix', release: 'patch' },
|
||||||
{ type: 'docs', scope: 'README', release: 'patch' },
|
{ type: 'docs', scope: 'README', release: 'patch' },
|
||||||
{ type: 'refactor', release: 'patch' },
|
{ type: 'refactor', release: 'patch' },
|
||||||
{ type: 'style', release: 'patch' },
|
{ type: 'style', release: 'patch' },
|
||||||
@@ -35,6 +36,7 @@ const releaseNotesGenerator = [
|
|||||||
types: [
|
types: [
|
||||||
{ type: 'feat', section: 'Features' },
|
{ type: 'feat', section: 'Features' },
|
||||||
{ type: 'fix', section: 'Bug Fixes' },
|
{ type: 'fix', section: 'Bug Fixes' },
|
||||||
|
{ type: 'hotfix', section: 'Hotfixes' },
|
||||||
{ type: 'docs', section: 'Documentation' },
|
{ type: 'docs', section: 'Documentation' },
|
||||||
{ type: 'style', section: 'Styles' },
|
{ type: 'style', section: 'Styles' },
|
||||||
{ type: 'refactor', section: 'Code Refactoring' },
|
{ type: 'refactor', section: 'Code Refactoring' },
|
||||||
|
|||||||
Reference in new issue
Block a user