From 87438fb38e3af2d0801065caa7a0c620abd4b097 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Wed, 14 Jan 2026 14:34:57 -0600 Subject: [PATCH] ci: dedup stuff in changelog (#8522) Co-authored-by: opencode-agent[bot] Co-authored-by: rekram1-node --- script/changelog.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/changelog.ts b/script/changelog.ts index f575ff4940..388c097302 100755 --- a/script/changelog.ts +++ b/script/changelog.ts @@ -196,7 +196,7 @@ export async function getContributors(from: string, to: string) { const toRef = to === "HEAD" ? to : to.startsWith("v") ? to : `v${to}` const compare = await $`gh api "/repos/anomalyco/opencode/compare/${fromRef}...${toRef}" --jq '.commits[] | {login: .author.login, message: .commit.message}'`.text() - const contributors = new Map() + const contributors = new Map>() for (const line of compare.split("\n").filter(Boolean)) { const { login, message } = JSON.parse(line) as { login: string | null; message: string } @@ -204,8 +204,8 @@ export async function getContributors(from: string, to: string) { if (title.match(/^(ignore:|test:|chore:|ci:|release:)/i)) continue if (login && !team.includes(login)) { - if (!contributors.has(login)) contributors.set(login, []) - contributors.get(login)?.push(title) + if (!contributors.has(login)) contributors.set(login, new Set()) + contributors.get(login)!.add(title) } }