summaryrefslogtreecommitdiffhomepage
path: root/script/publish.ts
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-10-23 16:16:11 -0500
committerAiden Cline <[email protected]>2025-10-23 16:16:11 -0500
commit4216c1c2a9a0eb9516fa14aaeacc51c4ab6be9eb (patch)
tree45d830bed59e609881443d420220f62338e76c4a /script/publish.ts
parent4bd7646ccbb94562760f263f2c465addbbe04eed (diff)
downloadopencode-4216c1c2a9a0eb9516fa14aaeacc51c4ab6be9eb.tar.gz
opencode-4216c1c2a9a0eb9516fa14aaeacc51c4ab6be9eb.zip
adjust changelog generation
Diffstat (limited to 'script/publish.ts')
-rwxr-xr-xscript/publish.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/script/publish.ts b/script/publish.ts
index 23ec70b16..f86d706d6 100755
--- a/script/publish.ts
+++ b/script/publish.ts
@@ -16,9 +16,14 @@ if (!Script.preview) {
})
.then((data: any) => data.version)
- const commits =
+ const log =
await $`git log v${previous}..HEAD --oneline --format="%h %s" -- packages/opencode packages/sdk packages/plugin`.text()
+ const commits = log
+ .split("\n")
+ .filter((line) => line && !line.match(/^\w+ (ignore:|test:|chore:)/i))
+ .join("\n")
+
const opencode = await createOpencode()
const session = await opencode.client.session.create()
console.log("generating changelog since " + previous)
@@ -43,7 +48,8 @@ if (!Script.preview) {
- 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.
-
+ - For commits that are already well-written and descriptive, avoid rewording them. Simply capitalize the first letter, fix any misspellings, and ensure proper English grammar.
+
IMPORTANT: ONLY return a bulleted list of changes, do not include any other information. Do not include a preamble like "Based on my analysis..."
<example>