feat: add Kilo auto-close workflow - #11040
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Incremental review of the latest commit (
Files Reviewed (4 files)
Reviewed by claude-4.6-sonnet-20260217 · 500,030 tokens Review guidance: REVIEW.md from base branch |
johnnyeric
force-pushed
the
johnnyeric/auto-close-stale
branch
from
June 9, 2026 12:57
4585173 to
94af2b3
Compare
johnnyeric
force-pushed
the
johnnyeric/auto-close-stale
branch
from
June 9, 2026 13:46
94af2b3 to
c98e092
Compare
chrarnoldus
approved these changes
Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Kilo inherited upstream stale-closing workflows, but the policies we want for
Kilo-Org/kilocodediffer from upstreamanomalyco/opencodeand should not be re-edited during regular upstream merges.This PR separates Kilo's stale PR/issue closing automation into a dedicated
kilo-auto-closeworkflow and gates the upstream workflows so they only run in the upstream repository. That keeps Kilo behavior explicit while preserving upstream workflow files for easier future merges.Important rollout note for reviewers:
KILO_AUTO_CLOSE_ENABLEDis currently set tofalse, so scheduled runs default to dry-run mode. I will manually dispatch dry runs first, review the logged candidates/actions, and only enableKILO_AUTO_CLOSE_ENABLED=trueafter the dry-run output looks correct.Implementation
Adds
.github/workflows/kilo-auto-close.ymlbased on upstreamclose-stale-prs.ymlas the Kilo-owned workflow for both stale PRs and stale issues:dryRuninput that defaults totrue.vars.KILO_AUTO_CLOSE_ENABLED; with the current valuefalse, scheduled runs only log what would be closed.state_reason: not_planned.Also gates the inherited upstream workflows:
close-stale-prs.ymlnow only runs foranomalyco/opencode, with akilocode_changenote pointing reviewers tokilo-auto-close.yml.close-issues.ymlnow only runs foranomalyco/opencode, with the same Kilo isolation note.script/check-workflows.tsallowlist includeskilo-auto-close.ymlso CI explicitly accepts this new runnable workflow.Screenshots / Video
Actions Variable

How to Test
Manual/local verification
bun run script/check-workflows.ts: passed withcheck-workflows: ok (30 workflows).bun turbo typecheck: passed for all 17 turbo tasks before the branch was pushed.Reviewer test steps
kilo-auto-close.dryRun=trueand confirm logs show candidate PRs/issues without commenting or closing anything.KILO_AUTO_CLOSE_ENABLEDremainsfalseduring initial rollout so scheduled runs also dry-run.KILO_AUTO_CLOSE_ENABLED=trueto enable scheduled real closing.Checklist