mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
ci: fix changelog generation
This commit is contained in:
@@ -16,6 +16,9 @@ if (!Script.preview) {
|
|||||||
})
|
})
|
||||||
.then((data: any) => data.version)
|
.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 opencode = await createOpencode()
|
||||||
const session = await opencode.client.session.create()
|
const session = await opencode.client.session.create()
|
||||||
console.log("generating changelog since " + previous)
|
console.log("generating changelog since " + previous)
|
||||||
@@ -33,16 +36,10 @@ if (!Script.preview) {
|
|||||||
{
|
{
|
||||||
type: "text",
|
type: "text",
|
||||||
text: `
|
text: `
|
||||||
Analyze the commits between ${previous} and HEAD.
|
Analyze these commits and generate a changelog of all notable user facing changes.
|
||||||
|
|
||||||
We care about changes to
|
Commits between ${previous} and HEAD:
|
||||||
- packages/opencode
|
${commits}
|
||||||
- packages/sdk
|
|
||||||
- packages/plugin
|
|
||||||
|
|
||||||
We do not care about anything else
|
|
||||||
|
|
||||||
Return a changelog of all notable user facing changes.
|
|
||||||
|
|
||||||
- Do NOT make general statements about "improvements", be very specific about what was changed.
|
- 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.
|
- Do NOT include any information about code changes if they do not affect the user facing changes.
|
||||||
|
|||||||
Reference in New Issue
Block a user