Dax Raad 7 luni în urmă
părinte
comite
5550ce47e1
1 a modificat fișierele cu 5 adăugiri și 2 ștergeri
  1. 5 2
      packages/opencode/script/publish.ts

+ 5 - 2
packages/opencode/script/publish.ts

@@ -93,13 +93,16 @@ if (!snapshot) {
     .then((res) => res.json())
     .then((res) => res.json())
     .then((data) => data.tag_name)
     .then((data) => data.tag_name)
 
 
+  console.log("finding commits between", previous, "and", "HEAD")
   const commits = await fetch(`https://api.github.com/repos/sst/opencode/compare/${previous}...HEAD`)
   const commits = await fetch(`https://api.github.com/repos/sst/opencode/compare/${previous}...HEAD`)
     .then((res) => res.json())
     .then((res) => res.json())
     .then((data) => data.commits || [])
     .then((data) => data.commits || [])
 
 
+  const raw = commits.map((commit: any) => `- ${commit.commit.message.split("\n").join(" ")}`)
+  console.log(raw)
+
   const notes =
   const notes =
-    commits
-      .map((commit: any) => `- ${commit.commit.message.split("\n")[0]}`)
+    raw
       .filter((x: string) => {
       .filter((x: string) => {
         const lower = x.toLowerCase()
         const lower = x.toLowerCase()
         return (
         return (