Skip to content

Commit

Permalink
ci: changelog 配置修改
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiaa12 committed Jul 27, 2023
1 parent 52e57a2 commit ddf7409
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 51 deletions.
10 changes: 7 additions & 3 deletions changelog.ts
@@ -1,5 +1,6 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
const flag = true
const options = {
writerOpts: {
transform: (commit, context) => {
Expand Down Expand Up @@ -82,18 +83,21 @@ const options = {
})

// 提交时间
commit.sortTime = Date.now() - new Date(commit.committerDate)
commit.sortTime = context.sortTime =
Date.now() - new Date(commit.committerDate)

// 把版本设为 markdown 二级标题
commit.gitTags && (commit.isPatch = true)

context.version = "更新日志"
context.date = ""

return commit
},
groupBy: "type",
commitGroupsSort: "title",
commitGroupsSort: "sortTime",
commitsSort: ["sortTime", "scope", "subject"],
noteGroupsSort: "title",
noteGroupsSort: "sortTime",
},
}

Expand Down

0 comments on commit ddf7409

Please sign in to comment.