Skip to content

Commit 834cbbc

Browse files
committed
fix(ci): update changelog.ts to use shuvcode repo and add GH_TOKEN env var
1 parent 3075cbe commit 834cbbc

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
8686
AUR_KEY: ${{ secrets.AUR_KEY }}
8787
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
88+
GH_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
8889
NPM_CONFIG_PROVENANCE: false
8990

9091
- uses: actions/upload-artifact@v4

script/changelog.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const team = [
1818
]
1919

2020
export async function getLatestRelease() {
21-
return fetch("https://api.github.com/repos/anomalyco/opencode/releases/latest")
21+
return fetch("https://api.github.com/repos/Latitudes-Dev/shuvcode/releases/latest")
2222
.then((res) => {
2323
if (!res.ok) throw new Error(res.statusText)
2424
return res.json()
@@ -39,7 +39,7 @@ export async function getCommits(from: string, to: string): Promise<Commit[]> {
3939

4040
// Get commit data with GitHub usernames from the API
4141
const compare =
42-
await $`gh api "/repos/anomalyco/opencode/compare/${fromRef}...${toRef}" --jq '.commits[] | {sha: .sha, login: .author.login, message: .commit.message}'`.text()
42+
await $`gh api "/repos/Latitudes-Dev/shuvcode/compare/${fromRef}...${toRef}" --jq '.commits[] | {sha: .sha, login: .author.login, message: .commit.message}'`.text()
4343

4444
const commitData = new Map<string, { login: string | null; message: string }>()
4545
for (const line of compare.split("\n").filter(Boolean)) {
@@ -195,7 +195,7 @@ export async function getContributors(from: string, to: string) {
195195
const fromRef = from.startsWith("v") ? from : `v${from}`
196196
const toRef = to === "HEAD" ? to : to.startsWith("v") ? to : `v${to}`
197197
const compare =
198-
await $`gh api "/repos/anomalyco/opencode/compare/${fromRef}...${toRef}" --jq '.commits[] | {login: .author.login, message: .commit.message}'`.text()
198+
await $`gh api "/repos/Latitudes-Dev/shuvcode/compare/${fromRef}...${toRef}" --jq '.commits[] | {login: .author.login, message: .commit.message}'`.text()
199199
const contributors = new Map<string, string[]>()
200200

201201
for (const line of compare.split("\n").filter(Boolean)) {

0 commit comments

Comments
 (0)