mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-03 06:28:52 +00:00
3 files changed
+16
-15
No files matched your search
@@ -13,19 +13,21 @@ type(category): description [flag]
|
|||||||
The `type` must be one of the followings:
|
The `type` must be one of the followings:
|
||||||
|
|
||||||
* `breaking` (Breaking Changes)
|
* `breaking` (Breaking Changes)
|
||||||
* `build` (Build System)
|
|
||||||
* `ci` (Continuous Integration)
|
|
||||||
* `chore` (Chores)
|
|
||||||
* `deps` (Dependencies)
|
|
||||||
* `docs` (Documentation Changes)
|
|
||||||
* `feat` (New Features)
|
* `feat` (New Features)
|
||||||
* `fix` (Bug Fixes)
|
* `fix` (Bug Fixes)
|
||||||
* `other` (Other Changes)
|
* `revert` (Reverts)
|
||||||
* `perf` (Performance Improvements)
|
* `perf` (Performance Improvements)
|
||||||
* `refactor` (Refactors)
|
* `refactor` (Refactors)
|
||||||
* `revert` (Reverts)
|
* `deps` (Dependencies)
|
||||||
|
* `docs` (Documentation Changes)
|
||||||
* `style` (Code Style Changes)
|
* `style` (Code Style Changes)
|
||||||
|
* `build` (Build System)
|
||||||
|
* `ci` (Continuous Integration)
|
||||||
* `test` (Tests)
|
* `test` (Tests)
|
||||||
|
* `chore` (Chores)
|
||||||
|
* `other` (Other Changes)
|
||||||
|
|
||||||
|
> The changelogs will be in the same order as listed above.
|
||||||
|
|
||||||
> If the `type` is not found in the list, it'll be considered as `other`.
|
> If the `type` is not found in the list, it'll be considered as `other`.
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ export async function generate(input: InputI): Promise<string> {
|
|||||||
|
|
||||||
return Object.values(TYPES)
|
return Object.values(TYPES)
|
||||||
.filter((type) => !exclude.includes(type))
|
.filter((type) => !exclude.includes(type))
|
||||||
.sort()
|
|
||||||
.reduce((changelog, type) => {
|
.reduce((changelog, type) => {
|
||||||
const typeGroup = commits[type];
|
const typeGroup = commits[type];
|
||||||
|
|
||||||
|
|||||||
+7
-7
@@ -6,19 +6,19 @@ export const PR_REGEX = /#([1-9]\d*)/g;
|
|||||||
|
|
||||||
export const TYPES: TypesI = {
|
export const TYPES: TypesI = {
|
||||||
breaking: "Breaking Changes",
|
breaking: "Breaking Changes",
|
||||||
build: "Build System",
|
|
||||||
ci: "Continuous Integration",
|
|
||||||
chore: "Chores",
|
|
||||||
deps: "Dependencies",
|
|
||||||
docs: "Documentation Changes",
|
|
||||||
feat: "New Features",
|
feat: "New Features",
|
||||||
fix: "Bug Fixes",
|
fix: "Bug Fixes",
|
||||||
other: "Other Changes",
|
revert: "Reverts",
|
||||||
perf: "Performance Improvements",
|
perf: "Performance Improvements",
|
||||||
refactor: "Refactors",
|
refactor: "Refactors",
|
||||||
revert: "Reverts",
|
deps: "Dependencies",
|
||||||
|
docs: "Documentation Changes",
|
||||||
style: "Code Style Changes",
|
style: "Code Style Changes",
|
||||||
|
build: "Build System",
|
||||||
|
ci: "Continuous Integration",
|
||||||
test: "Tests",
|
test: "Tests",
|
||||||
|
chore: "Chores",
|
||||||
|
other: "Other Changes",
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface TypesI {
|
export interface TypesI {
|
||||||
|
|||||||
Reference in new issue
Block a user