mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
## Summary Fixed two bugs in the auto-close-duplicates bot: - **Respect 👎 reactions from ANY user**: Previously only the issue author's thumbs down would prevent auto-closing. Now any user can indicate disagreement with the duplicate detection. - **Don't re-close reopened issues**: The bot now checks if an issue was previously reopened and skips auto-closing to respect user intent. ## Changes 1. Modified `fetchAllReactions` call to check all reactions, not just the author's 2. Changed `authorThumbsDown` logic to `hasThumbsDown` (checks any user's reaction) 3. Added `wasIssueReopened()` function to query issue events timeline 4. Added check to skip issues with "reopened" events in their history ## Test plan - [ ] Manually test the script doesn't close issues with 👎 reactions from non-authors - [ ] Verify reopened issues are not auto-closed again - [ ] Check that legitimate duplicates without objections still get closed properly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com>