mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 02:11:28 +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:
@@ -20,6 +20,7 @@ const commitAnalyzer = [
|
||||
{
|
||||
preset: 'conventionalcommits',
|
||||
releaseRules: [
|
||||
{ type: 'hotfix', release: 'patch' },
|
||||
{ type: 'docs', scope: 'README', release: 'patch' },
|
||||
{ type: 'refactor', release: 'patch' },
|
||||
{ type: 'style', release: 'patch' },
|
||||
@@ -35,6 +36,7 @@ const releaseNotesGenerator = [
|
||||
types: [
|
||||
{ type: 'feat', section: 'Features' },
|
||||
{ type: 'fix', section: 'Bug Fixes' },
|
||||
{ type: 'hotfix', section: 'Hotfixes' },
|
||||
{ type: 'docs', section: 'Documentation' },
|
||||
{ type: 'style', section: 'Styles' },
|
||||
{ type: 'refactor', section: 'Code Refactoring' },
|
||||
|
||||
Reference in New Issue
Block a user