Skip to content

Commit

Permalink
feat: update release format
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Jun 13, 2024
1 parent 7a34ebc commit 303cffd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/libs/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { type ChangelogOptions } from 'changelogithub'
export function getInputOptions(): ChangelogOptions {
const inputs = {
capitalize: getBooleanInput('capitalize'),
contributors: getBooleanInput('contributors'),
contributors: getBooleanInput('contributors') ?? true,
// https://github.com/antfu/changelogithub/blob/main/src/cli.ts#L20
emoji: getBooleanInput('emoji') ?? true,
from: getStringInput('from'),
Expand All @@ -16,16 +16,16 @@ export function getInputOptions(): ChangelogOptions {
fix: { title: '🐞 Bug Fixes' },
perf: { title: '🏎 Performance' },
refactor: { title: "πŸ’… Refactors" },
improve: { title: "πŸ’‘ Improvements" },
tweak: { title: "πŸ”§ Tweaks" },
docs: { title: "πŸ“– Documentation" },
build: { title: "πŸ“¦ Build" },
types: { title: "🌊 Types" },
chore: { title: "🏑 Chore" },
examples: { title: "πŸ€ Examples" },
test: { title: "βœ… Tests" },
style: { title: "🎨 Styles" },
ci: { title: "πŸ€– CI" },
improve: { title: "πŸ’‘ Improvements" },
tweak: { title: "πŸ”§ Tweaks" },
style: { title: "🎨 Styles" },
},
}

Expand Down
5 changes: 1 addition & 4 deletions src/libs/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ export async function generateChangelog(inputOptions: ChangelogOptions) {
// remove footer diff link
let content = md.replace(/#####     .+/i, '')

const diff = `https://github.com/${config.repo}/compare/${config.from}...${config.to}`
const footer = `**Full Changelog**: ${diff}\n`
const changelog = content + footer
setOutput('changelog', changelog)
setOutput('changelog', md)

await setFileChangelogOutput(config, content)

Expand Down

0 comments on commit 303cffd

Please sign in to comment.