Skip to content

Commit

Permalink
fix(changelog): update changelog format (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
phucledien authored Jan 25, 2024
1 parent 3f21a17 commit f5cf2d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"@bonfida/spl-name-service": "^1.0.11",
"@consolelabs/mochi-formatter": "^19.0.5",
"@consolelabs/mochi-formatter": "^19.0.6",
"@consolelabs/mochi-rest": "^5.2.2",
"@discordjs/builders": "^0.12.0",
"@discordjs/rest": "^0.5.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/commands/changelog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ const slashCmd: SlashCommand = {
content: changelog.content,
on: Platform.Discord,
})
const footer = `\⎯⎯⎯⎯⎯\nView all changelogs on [Mochi web](${HOMEPAGE_URL}/changelog/${changelog.version})`
const footer = `\⎯⎯⎯⎯⎯\nView changelog detail on [Mochi web](${HOMEPAGE_URL}/changelog/${changelog.version})`
let embed = composeEmbedMessage(null, {
description: `${text}\n${footer}`,
footer: [`v${changelog.version}`],
})
if (images.length > 0) {
embed.setImage(images[0])
Expand Down
1 change: 1 addition & 0 deletions src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ export interface ModelProductChangelogs {
next_version?: string
previous_version?: string
product?: string
seo_description?: string
thumbnail_url?: string
title?: string
updated_at?: string
Expand Down

0 comments on commit f5cf2d3

Please sign in to comment.