mirror of
https://github.com/anthropics/claude-code.git
synced 2026-01-30 04:02:03 +00:00
Add GitHub workflow to lock stale issues (#4602)
* Add GitHub workflow to lock stale issues - Locks issues closed for 7+ days without activity - Runs daily at 7am Pacific (2pm UTC) - Includes manual workflow dispatch trigger - Posts helpful comment before locking with guidance for new issues 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * PR feedback * adjust params --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
27
.github/workflows/lock-closed-issues.yml
vendored
Normal file
27
.github/workflows/lock-closed-issues.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: "Lock Stale Issues"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# 8am Pacific = 1pm UTC (2pm UTC during DST)
|
||||
- cron: "0 14 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
concurrency:
|
||||
group: lock-threads
|
||||
|
||||
jobs:
|
||||
lock-threads:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
|
||||
with:
|
||||
issue-inactive-days: "7"
|
||||
process-only: "issues"
|
||||
issue-comment: >
|
||||
This issue has been automatically locked since it was
|
||||
closed and has not had any activity for 7 days.
|
||||
If you're experiencing a similar issue, please file a new issue
|
||||
and reference this one if it's relevant.
|
||||
Reference in New Issue
Block a user