claude-code/.github/workflows
Chris Lloyd 1718a57495
Fix issues being auto-closed despite human activity (#26360)
The sweep script was closing issues based solely on when a lifecycle label
was applied, ignoring any human comments posted after the label. This caused
active issues (like #11792) to be closed even when users responded to the
stale warning.

Three changes:

1. Teach the triage bot about `stale` and `autoclose` labels so it removes
   them when a human comments on the issue.

2. Add a safety net in `closeExpired()` that checks for non-bot comments
   posted after the lifecycle label was applied — if any exist, skip closing.

3. Extend the 10-upvote protection (which previously only applied to
   enhancements) to all issue types, in both `markStale()` and
   `closeExpired()`.

Fixes #16497

## Test plan

Trace through scenarios manually:
- Issue with stale label + human comment after → triage removes label;
  sweep skips even if triage hasn't run yet (safety net)
- Issue with stale label + no human comment → closes as before
- Issue with 10+ upvotes of any type → never marked stale or closed

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-17 10:53:20 -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 Fix issues being auto-closed despite human activity (#26360) 2026-02-17 10:53:20 -08:00
claude.yml ci: update claude-code-base-action and claude-code-action to v1 2026-01-09 18:24:29 -08:00
issue-lifecycle-comment.yml Post a comment when lifecycle labels are applied to issues (#25665) 2026-02-13 19:39:10 -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
sweep.yml Unify issue lifecycle labeling and sweep into a single system (#25352) 2026-02-12 11:45:31 -08:00