smarter changelog (#20138)

This commit is contained in:
Luke Parker 2026-03-31 10:05:46 +10:00 committed by GitHub
commit 93fad99f7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 330 additions and 252 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()