diff options
| author | Aiden Cline <[email protected]> | 2025-10-16 11:29:58 -0500 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-10-16 11:29:58 -0500 |
| commit | 4a7551e87b93f53c3c588dc0c41f4c0ee8271308 (patch) | |
| tree | 63a376a69b03ba252b0df5f070d6cc7c8ad3f7cb /script | |
| parent | 285cc4b9fd31f0b88de733f0fc237d430c7dd380 (diff) | |
| download | opencode-4a7551e87b93f53c3c588dc0c41f4c0ee8271308.tar.gz opencode-4a7551e87b93f53c3c588dc0c41f4c0ee8271308.zip | |
ci: fix changelog generation
Diffstat (limited to 'script')
| -rwxr-xr-x | script/publish.ts | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/script/publish.ts b/script/publish.ts index c1c705e8c..d6cfe0034 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -16,6 +16,9 @@ if (!Script.preview) { }) .then((data: any) => data.version) + const commits = + await $`git log v${previous}..HEAD --oneline --format="%h %s" -- packages/opencode packages/sdk packages/plugin`.text() + const opencode = await createOpencode() const session = await opencode.client.session.create() console.log("generating changelog since " + previous) @@ -33,16 +36,10 @@ if (!Script.preview) { { type: "text", text: ` - Analyze the commits between ${previous} and HEAD. - - We care about changes to - - packages/opencode - - packages/sdk - - packages/plugin - - We do not care about anything else + Analyze these commits and generate a changelog of all notable user facing changes. - Return a changelog of all notable user facing changes. + Commits between ${previous} and HEAD: + ${commits} - Do NOT make general statements about "improvements", be very specific about what was changed. - Do NOT include any information about code changes if they do not affect the user facing changes. |
