文件最后提交记录最后更新时间
Restore dedupe workflows This reverts commit d81efef32491c20fc36a0a25a8f33d1a26c3ec78. 7 个月前
Restore dedupe workflows This reverts commit d81efef32491c20fc36a0a25a8f33d1a26c3ec78. 7 个月前
Read issue number from workflow event in helper scripts (#40969) Updates edit-issue-labels.sh and comment-on-duplicates.sh to read the issue number from GITHUB_EVENT_PATH (the workflow event payload) instead of accepting it as a CLI argument. Simplifies the call signature and keeps the scripts aligned with the triggering issue. Also updates the /triage-issue and /dedupe command docs to match. :house: Remote-Dev: homespace1 个月前
Read issue number from workflow event in helper scripts (#40969) Updates edit-issue-labels.sh and comment-on-duplicates.sh to read the issue number from GITHUB_EVENT_PATH (the workflow event payload) instead of accepting it as a CLI argument. Simplifies the call signature and keeps the scripts aligned with the triggering issue. Also updates the /triage-issue and /dedupe command docs to match. :house: Remote-Dev: homespace1 个月前
Improve gh.sh wrapper: stricter validation and better error messages - Use allowlist for issue view (numeric issue numbers only) - Enforce zero positional args for issue list / label list - Pin GH_HOST and GH_REPO explicitly to avoid ambient state - Add descriptive error messages with usage examples 2 个月前
Post a comment when lifecycle labels are applied to issues (#25665) When lifecycle labels (needs-info, needs-repro, invalid, stale, autoclose) are applied to an issue, the author currently only sees a label change with no explanation. They then get a closing comment days later without ever being nudged to respond. Add a GitHub Actions workflow that triggers on issues.labeled and runs a new lifecycle-comment.ts script to post a comment explaining what's needed and how long before auto-close. Extract lifecycle config (labels, timeouts, close reasons, nudge messages) into a shared issue-lifecycle.ts so the sweep script and comment script stay in sync. Previously the timeouts were duplicated between the sweep script and the comment messages. - needs-info: asks for version, OS, error messages - needs-repro: asks for steps to trigger the issue - invalid: links to the Claude Code repo and Anthropic support - stale/autoclose: explains inactivity auto-close The script no-ops for non-lifecycle labels, so the workflow fires on every label event and lets the script decide — single source of truth. ## Test plan Dry-run all labels locally: GITHUB_REPOSITORY=anthropics/claude-code LABEL=needs-info ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=needs-repro ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=invalid ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=stale ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=autoclose ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run Verified sweep.ts still works: GITHUB_TOKEN=$(gh auth token) GITHUB_REPOSITORY_OWNER=anthropics GITHUB_REPOSITORY_NAME=claude-code bun run scripts/sweep.ts --dry-run3 个月前
Post a comment when lifecycle labels are applied to issues (#25665) When lifecycle labels (needs-info, needs-repro, invalid, stale, autoclose) are applied to an issue, the author currently only sees a label change with no explanation. They then get a closing comment days later without ever being nudged to respond. Add a GitHub Actions workflow that triggers on issues.labeled and runs a new lifecycle-comment.ts script to post a comment explaining what's needed and how long before auto-close. Extract lifecycle config (labels, timeouts, close reasons, nudge messages) into a shared issue-lifecycle.ts so the sweep script and comment script stay in sync. Previously the timeouts were duplicated between the sweep script and the comment messages. - needs-info: asks for version, OS, error messages - needs-repro: asks for steps to trigger the issue - invalid: links to the Claude Code repo and Anthropic support - stale/autoclose: explains inactivity auto-close The script no-ops for non-lifecycle labels, so the workflow fires on every label event and lets the script decide — single source of truth. ## Test plan Dry-run all labels locally: GITHUB_REPOSITORY=anthropics/claude-code LABEL=needs-info ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=needs-repro ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=invalid ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=stale ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=autoclose ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run Verified sweep.ts still works: GITHUB_TOKEN=$(gh auth token) GITHUB_REPOSITORY_OWNER=anthropics GITHUB_REPOSITORY_NAME=claude-code bun run scripts/sweep.ts --dry-run3 个月前
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>3 个月前