fix: improve auto close filter logic - #11119
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 485efb14a0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Code Review SummaryStatus: 1 Issue Found | Recommendation: Low risk, merge at discretion Overview
Issue Details (click to expand)WARNING
Issue Notes
The GraphQL query fetches at most 100 review threads per PR. If a PR has accumulated more than 100 review threads, only the 100 most recent are returned. Because A workaround if this ever becomes a concern would be to paginate Everything else looks correct:
Files Reviewed (1 file)
Fix these issues in Kilo Cloud Reviewed by claude-4.6-sonnet-20260217 · 455,805 tokens Review guidance: REVIEW.md from base branch |
485efb1 to
1fb7209
Compare
Context
Improve stale PR detection so review-thread comments count as PR activity before auto-closing.
Implementation
Fetch PRs through GraphQL with commits, issue comments, reviews, and review-thread comments, then close only PRs whose latest activity is older than the cutoff. Keep issue closing on the existing oldest-updated scan.
Screenshots / Video
N/A, workflow-only change.
How to Test
Manual/local verification
bun run script/check-workflows.tssuccessfully.Reviewer test steps
kilo-auto-closeworkflow withdryRun: true.Checklist
Get in Touch