surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic 路 github.com/anthropics
* 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>
| @@ -1,0 +1,27 @@ | ||
| 1 | +name: "Lock Stale Issues" | |
| 2 | + | |
| 3 | +on: | |
| 4 | + schedule: | |
| 5 | + # 8am Pacific = 1pm UTC (2pm UTC during DST) | |
| 6 | + - cron: "0 14 * * *" | |
| 7 | + workflow_dispatch: | |
| 8 | + | |
| 9 | +permissions: | |
| 10 | + issues: write | |
| 11 | + | |
| 12 | +concurrency: | |
| 13 | + group: lock-threads | |
| 14 | + | |
| 15 | +jobs: | |
| 16 | + lock-threads: | |
| 17 | + runs-on: ubuntu-latest | |
| 18 | + steps: | |
| 19 | + - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1 | |
| 20 | + with: | |
| 21 | + issue-inactive-days: "7" | |
| 22 | + process-only: "issues" | |
| 23 | + issue-comment: > | |
| 24 | + This issue has been automatically locked since it was | |
| 25 | + closed and has not had any activity for 7 days. | |
| 26 | + If you're experiencing a similar issue, please file a new issue | |
| 27 | + and reference this one if it's relevant. |