Dedupe automation should skip pull requests returned by issues API
Resolved 💬 2 comments Opened Jan 16, 2026 by MaxMiksa Closed Feb 27, 2026
Summary
The dedupe automation uses the /issues API, which returns pull requests alongside issues. The scripts currently do not filter PR items.
Steps to Reproduce
- Run
scripts/auto-close-duplicates.tsorscripts/backfill-duplicate-comments.ts. - Ensure at least one pull request exists in the issues list (GitHub includes PRs with a
pull_requestfield).
Expected Behavior
PR items are ignored and never processed by the dedupe scripts.
Actual Behavior
PR items can be processed, which may close or comment on PRs incorrectly.
Proposed Fix
Skip any list items that include pull_request metadata before processing.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗