smarter changelog (#20138)

This commit is contained in:
Luke Parker
2026-03-31 10:05:46 +10:00
committed by GitHub
parent 057848deb8
commit 93fad99f7f
4 changed files with 329 additions and 251 deletions

View File

@@ -7,7 +7,7 @@ const output = [`version=${Script.version}`]
if (!Script.preview) {
const sha = process.env.GITHUB_SHA ?? (await $`git rev-parse HEAD`.text()).trim()
await $`opencode run --command changelog -- --to ${sha}`.cwd(process.cwd())
await $`bun script/changelog.ts --to ${sha}`.cwd(process.cwd())
const file = `${process.cwd()}/UPCOMING_CHANGELOG.md`
const body = await Bun.file(file)
.text()