Skip to content

Commit

Permalink
feat: improve sha display
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 13, 2022
1 parent 542b2aa commit dfba1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function generateMarkdown(commits: GitCommit[], config: ChangelogenOption
const lines = group.reverse()
.map((commit) => {
const scope = commit.scope ? `**${commit.scope.trim()}:** ` : ''
const ref = `([${commit.references[0]}](https://github.com/${config.github}/commit/${commit.references[0]}))`
const ref = `[\`${commit.references[0]}\`](https://github.com/${config.github}/commit/${commit.references[0]})`
const line = `- ${scope}${commit.description} ${ref}`
if (commit.isBreaking) {
breakingChanges.push(line)
Expand Down

0 comments on commit dfba1b3

Please sign in to comment.