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 490b845 commit d67562a
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 23 deletions.
99 changes: 94 additions & 5 deletions dist/677.index.js

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

2 changes: 1 addition & 1 deletion dist/677.index.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

36 changes: 26 additions & 10 deletions dist/licenses.txt

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

9 changes: 6 additions & 3 deletions src/libs/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ export async function generateChangelog(inputOptions: ChangelogOptions) {
throw new Error(`Current ref "${config.to}" is not available as tags on GitHub. Release skipped.`)
}

// align footer diff link
let content = md.replace(/#####  /i, '#####   ')

// remove footer diff link
let content = md.replace(/#####     .+/i, '')
let nofooter = md.replace(/#####  .+/i, '')

setOutput('changelog', md)
setOutput('changelog', content)

await setFileChangelogOutput(config, content)
await setFileChangelogOutput(config, nofooter)

if (commits.length === 0 && (await isRepoShallow())) {
throw new Error(
Expand Down

0 comments on commit d67562a

Please sign in to comment.