claude-code/.github/workflows
Chris Lloyd a17040212c
Add daily sweep to enforce issue lifecycle label timeouts
Introduce a simple, mechanical daily sweep that closes issues with
lifecycle labels past their timeout:

- needs-repro: 7 days
- needs-info: 7 days
- needs-votes: 30 days
- stale: 30 days

The sweep checks when the label was last applied via the events API,
and closes the issue if the timeout has elapsed. No AI, no comment
checking — if the label is still there past its timeout, close it.
Removing a label (by a triager, slash command, or future AI retriage)
is what prevents closure.

Each close message directs the reporter to open a new issue rather
than engaging with the closed one.

The script supports --dry-run for local testing:
  GITHUB_TOKEN=$(gh auth token) \
  GITHUB_REPOSITORY_OWNER=anthropics \
  GITHUB_REPOSITORY_NAME=claude-code \
  bun run scripts/sweep.ts --dry-run

## Test plan

Ran --dry-run against anthropics/claude-code. Correctly identified 3
issues past their timeouts (1 needs-repro at 12d, 2 needs-info at
14d and 26d). No false positives.
2026-02-11 22:34:23 -08:00
..
auto-close-duplicates.yml Restore dedupe workflows 2025-09-24 18:01:05 -07:00
backfill-duplicate-comments.yml Restore dedupe workflows 2025-09-24 18:01:05 -07:00
claude-dedupe-issues.yml chore: allow non-write users to trigger claude-code-action workflows 2026-01-14 18:11:06 -05:00
claude-issue-triage.yml chore: allow non-write users to trigger claude-code-action workflows 2026-01-14 18:11:06 -05:00
claude.yml ci: update claude-code-base-action and claude-code-action to v1 2026-01-09 18:24:29 -08:00
issue-opened-dispatch.yml Update workflow 2025-09-05 15:26:12 -07:00
lock-closed-issues.yml Remove timeout-minutes from lock-closed-issues workflow (#5455) 2025-08-09 10:58:52 -07:00
log-issue-events.yml Add issue close event trigger to log-issue-events workflow 2025-08-22 18:30:52 -07:00
oncall-triage.yml chore: allow non-write users to trigger claude-code-action workflows 2026-01-14 18:11:06 -05:00
remove-autoclose-label.yml Revert "Revert "Add stale issue management workflows" (#9304)" (#12917) 2025-12-02 15:19:09 -08:00
stale-issue-manager.yml Revert "Revert "Add stale issue management workflows" (#9304)" (#12917) 2025-12-02 15:19:09 -08:00
sweep.yml Add daily sweep to enforce issue lifecycle label timeouts 2026-02-11 22:34:23 -08:00