Skip to content

Commit 5550ce4

Browse files
committed
ci: tweaks
1 parent 2d84dad commit 5550ce4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/opencode/script/publish.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,16 @@ if (!snapshot) {
9393
.then((res) => res.json())
9494
.then((data) => data.tag_name)
9595

96+
console.log("finding commits between", previous, "and", "HEAD")
9697
const commits = await fetch(`https://api.github.com/repos/sst/opencode/compare/${previous}...HEAD`)
9798
.then((res) => res.json())
9899
.then((data) => data.commits || [])
99100

101+
const raw = commits.map((commit: any) => `- ${commit.commit.message.split("\n").join(" ")}`)
102+
console.log(raw)
103+
100104
const notes =
101-
commits
102-
.map((commit: any) => `- ${commit.commit.message.split("\n")[0]}`)
105+
raw
103106
.filter((x: string) => {
104107
const lower = x.toLowerCase()
105108
return (

0 commit comments

Comments
 (0)