Auto-Close Duplicates
The auto-close feature automatically closes issues labelledpotential-duplicate after a configurable grace period, while respecting human override signals.
How it works
- When Simili Bot detects a duplicate issue, it applies the
potential-duplicatelabel and posts an analysis comment - A grace period begins (default: 72 hours)
- At the end of the grace period,
simili auto-closechecks for human activity - If no human override signals are present, the issue is closed with a comment
Human activity detection
The auto-closer will not close an issue if any of the following occur after thepotential-duplicate label was applied:
| Signal | Description |
|---|---|
| Negative reaction | A non-bot user reacts with 👎 or 😕 on the bot’s comment |
| Issue reopened | A human reopens the issue after it was labelled |
| Non-bot comment | A non-bot user comments on the issue |
[bot], dependabot, renovate, and any accounts in bot_users config) are ignored for human activity detection.
Setup
1. Configure grace period
In.github/simili.yaml:
2. Create a scheduled workflow
Create.github/workflows/simili-auto-close.yml:
Dry-run mode
Test auto-close without making any changes:Output
The command outputs a JSON summary:Tips
- Set an appropriate grace period — 72 hours gives authors time to respond. For fast-moving repos, consider 24-48 hours.
- Use
workflow_dispatchin your workflow so you can trigger it manually when needed. - Run in dry-run first to see which issues would be closed before enabling for real.
- Combine with issue notifications — users who open duplicates will see the bot comment and can react to prevent closure.

