MCPcopy Index your code
hub / github.com/anomalyco/opencode / positiveReactionCount

Function positiveReactionCount

script/github/close-prs.ts:328–332  ·  view source on GitHub ↗
(pr: PullRequest)

Source from the content-addressed store, hash-verified

326}
327
328function positiveReactionCount(pr: PullRequest) {
329 return pr.reactionGroups
330 .filter((group) => positiveReactions.has(group.content))
331 .reduce((total, group) => total + group.users.totalCount, 0)
332}
333
334function hasPriorCleanup(pr: PullRequest) {
335 return pr.labels.nodes.some((label) => label.name === cleanupLabel)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected