Auto-close duplicates should preserve existing labels
Resolved 💬 2 comments Opened Jan 16, 2026 by MaxMiksa Closed Feb 27, 2026
Summary
The auto-close script sets labels: ['duplicate'], which overwrites existing issue labels.
Steps to Reproduce
- Run
scripts/auto-close-duplicates.tson an issue with existing labels. - The script closes the issue as duplicate.
Expected Behavior
Existing labels remain, and duplicate is added if missing.
Actual Behavior
Existing labels are replaced by duplicate only.
Proposed Fix
Fetch current labels and merge duplicate without overwriting the label set, or use the label-append endpoint.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗