diff options
| author | opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> | 2026-01-14 14:34:57 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-14 14:34:57 -0600 |
| commit | 87438fb38e3af2d0801065caa7a0c620abd4b097 (patch) | |
| tree | b0bdfe7e6da76223753fde177ad6513a68d69060 /script | |
| parent | 6b6d6e9e07d120e0f7458af41503270a0be8c424 (diff) | |
| download | opencode-87438fb38e3af2d0801065caa7a0c620abd4b097.tar.gz opencode-87438fb38e3af2d0801065caa7a0c620abd4b097.zip | |
ci: dedup stuff in changelog (#8522)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <[email protected]>
Diffstat (limited to 'script')
| -rwxr-xr-x | script/changelog.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/changelog.ts b/script/changelog.ts index f575ff494..388c09730 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<string, string[]>() + const contributors = new Map<string, Set<string>>() 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) } } |
