Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions script/github/close-issues.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bun

const repo = "anomalyco/opencode"
const repo = "mdev34-lab/silvercode"
const days = 60
const msg = `To stay organized issues are automatically closed after ${days} days of no activity. If the issue is still relevant please open a new one.`

Expand All @@ -11,7 +11,7 @@ if (!token) {
}

const cutoff = new Date(Date.now() - days * 24 * 60 * 60 * 1000)
const agentLogin = "opencode-agent[bot]"
const BOT_LOGINS = new Set(["arena-ai-coding-agent[bot]", "kilo-code-bot[bot]"])
const teamMembers = new Set(
(await Bun.file(new URL("../../.github/TEAM_MEMBERS", import.meta.url)).text())
.split("\n")
Expand All @@ -36,7 +36,7 @@ const headers = {

function shouldSkip(i: Issue) {
const login = i.user?.login.toLowerCase()
return login === agentLogin || (login ? teamMembers.has(login) : false) || teamAssociations.has(i.author_association)
return (login ? BOT_LOGINS.has(login) : false) || (login ? teamMembers.has(login) : false) || teamAssociations.has(i.author_association)
}

async function close(num: number) {
Expand Down
4 changes: 2 additions & 2 deletions script/github/close-prs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { parseArgs } from "util"

const defaultRepo = "anomalyco/opencode"
const defaultRepo = "mdev34-lab/silvercode"
const defaultAgeMonths = 1
const defaultThreshold = 2
const defaultSleepMs = 20_000
Expand Down Expand Up @@ -123,7 +123,7 @@ type CleanupCandidate = PullRequest & {

const message = `Automated PR Cleanup

Thank you for contributing to opencode.
Thank you for contributing to silvercode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

Expand Down
Loading