Skip to main content

Auto-Close Duplicates

The auto-close feature automatically closes issues labelled potential-duplicate after a configurable grace period, while respecting human override signals.

How it works

  1. When Simili Bot detects a duplicate issue, it applies the potential-duplicate label and posts an analysis comment
  2. A grace period begins (default: 72 hours)
  3. At the end of the grace period, simili auto-close checks for human activity
  4. 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 the potential-duplicate label was applied: Bot users (accounts ending in [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:
Or with an instant grace period for testing:

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_dispatch in 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.

Next steps

Auto-close CLI reference

Full command options

Duplicate detection guide

How duplicates are detected