diff options
| author | Luke Parker <[email protected]> | 2026-03-30 14:37:02 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-30 04:37:02 +0000 |
| commit | 6926fe1c7455f4cd075d374b188850c14cda0fb2 (patch) | |
| tree | 52882be824f6448248f54dd83920a824982f53f7 /script/version.ts | |
| parent | ee018d5c82a593907bae9011bc074766e670d593 (diff) | |
| download | opencode-6926fe1c7455f4cd075d374b188850c14cda0fb2.tar.gz opencode-6926fe1c7455f4cd075d374b188850c14cda0fb2.zip | |
fix: stabilize release changelog generation (#19987)
Diffstat (limited to 'script/version.ts')
| -rwxr-xr-x | script/version.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/version.ts b/script/version.ts index 7bed6d3a9..2fa59fe9f 100755 --- a/script/version.ts +++ b/script/version.ts @@ -6,7 +6,8 @@ import { $ } from "bun" const output = [`version=${Script.version}`] if (!Script.preview) { - await $`opencode run --command changelog`.cwd(process.cwd()) + const sha = process.env.GITHUB_SHA ?? (await $`git rev-parse HEAD`.text()).trim() + await $`opencode run --command changelog -- --to ${sha}`.cwd(process.cwd()) const file = `${process.cwd()}/UPCOMING_CHANGELOG.md` const body = await Bun.file(file) .text() |
