-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from koiralakiran1/custom-release-rule-changelog
Feat: Support Custom Changelog rules
- Loading branch information
Showing
8 changed files
with
189 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
type ChangelogRule = { | ||
/** | ||
* Commit type. | ||
* Eg: feat, fix etc. | ||
*/ | ||
type: string; | ||
/** | ||
* Section in changelog to group commits by type. | ||
* Eg: 'Bug Fix', 'Features' etc. | ||
*/ | ||
section?: string; | ||
}; | ||
|
||
/** | ||
* Default sections & changelog rules mentioned in `conventional-changelog-angular` & `conventional-changelog-conventionalcommits`. | ||
* References: | ||
* https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/writer-opts.js | ||
* https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/writer-opts.js | ||
*/ | ||
export const defaultChangelogRules: Readonly< | ||
Record<string, ChangelogRule> | ||
> = Object.freeze({ | ||
feat: { type: 'feat', section: 'Features' }, | ||
fix: { type: 'fix', section: 'Bug Fixes' }, | ||
perf: { type: 'perf', section: 'Performance Improvements' }, | ||
revert: { type: 'revert', section: 'Reverts' }, | ||
docs: { type: 'docs', section: 'Documentation' }, | ||
style: { type: 'style', section: 'Styles' }, | ||
refactor: { type: 'refactor', section: 'Code Refactoring' }, | ||
test: { type: 'test', section: 'Tests' }, | ||
build: { type: 'build', section: 'Build Systems' }, | ||
ci: { type: 'ci', section: 'Continuous Integration' }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters