(pr: PullRequest)
| 326 | } |
| 327 | |
| 328 | function 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 | |
| 334 | function hasPriorCleanup(pr: PullRequest) { |
| 335 | return pr.labels.nodes.some((label) => label.name === cleanupLabel) |