refactor: Improve changelog output order

Closes #8
This commit is contained in:
Ardalan Amini committed 2022-02-28 21:48:20 +03:30
1 parent e0339f1f01
commit b3dc12bbd4
3 files changed
+16 -15

No files matched your search

+9 -7
View File
@@ -13,19 +13,21 @@ type(category): description [flag]
The `type` must be one of the followings:
* `breaking` (Breaking Changes)
* `build` (Build System)
* `ci` (Continuous Integration)
* `chore` (Chores)
* `deps` (Dependencies)
* `docs` (Documentation Changes)
* `feat` (New Features)
* `fix` (Bug Fixes)
* `other` (Other Changes)
* `revert` (Reverts)
* `perf` (Performance Improvements)
* `refactor` (Refactors)
* `revert` (Reverts)
* `deps` (Dependencies)
* `docs` (Documentation Changes)
* `style` (Code Style Changes)
* `build` (Build System)
* `ci` (Continuous Integration)
* `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`.
-1
View File
@@ -52,7 +52,6 @@ export async function generate(input: InputI): Promise<string> {
return Object.values(TYPES)
.filter((type) => !exclude.includes(type))
.sort()
.reduce((changelog, type) => {
const typeGroup = commits[type];
+7 -7
View File
@@ -6,19 +6,19 @@ export const PR_REGEX = /#([1-9]\d*)/g;
export const TYPES: TypesI = {
breaking: "Breaking Changes",
build: "Build System",
ci: "Continuous Integration",
chore: "Chores",
deps: "Dependencies",
docs: "Documentation Changes",
feat: "New Features",
fix: "Bug Fixes",
other: "Other Changes",
revert: "Reverts",
perf: "Performance Improvements",
refactor: "Refactors",
revert: "Reverts",
deps: "Dependencies",
docs: "Documentation Changes",
style: "Code Style Changes",
build: "Build System",
ci: "Continuous Integration",
test: "Tests",
chore: "Chores",
other: "Other Changes",
};
export interface TypesI {