GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: dedup stuff in changelog (#8522) · nickihm/opencode@87438fb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • script
    • changelog.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎script/changelog.ts‎

Copy file name to clipboardExpand all lines: script/changelog.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,16 @@ export async function getContributors(from: string, to: string) {
196196
const toRef = to === "HEAD" ? to : to.startsWith("v") ? to : `v${to}`
197197
const compare =
198198
await $`gh api "/repos/anomalyco/opencode/compare/${fromRef}...${toRef}" --jq '.commits[] | {login: .author.login, message: .commit.message}'`.text()
199-
const contributors = new Map<string, string[]>()
199+
const contributors = new Map<string, Set<string>>()
200200

201201
for (const line of compare.split("\n").filter(Boolean)) {
202202
const { login, message } = JSON.parse(line) as { login: string | null; message: string }
203203
const title = message.split("\n")[0] ?? ""
204204
if (title.match(/^(ignore:|test:|chore:|ci:|release:)/i)) continue
205205

206206
if (login && !team.includes(login)) {
207-
if (!contributors.has(login)) contributors.set(login, [])
208-
contributors.get(login)?.push(title)
207+
if (!contributors.has(login)) contributors.set(login, new Set())
208+
contributors.get(login)!.add(title)
209209
}
210210
}
211211

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.