spacehub

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 issuesBrowse files
- 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>
Ashwin Bhat authored on Jul 28, 2025 parent 55219b8 · commit 7039affbe6e3
1 changed file+31 -0compared with 55219b8
A.github/workflows/lock-closed-issues.yml
@@ -1,0 +1,31 @@
1+name: 'Lock Stale Issues'
2+
3+on:
4+ schedule:
5+ # 7am Pacific = 2pm UTC (3pm 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+ pr-inactive-days: '36500' # ~100 years (effectively disabled)
23+ discussion-inactive-days: '36500' # ~100 years (effectively disabled)
24+ process-only: 'issues'
25+ issue-lock-reason: 'resolved'
26+ issue-comment: >
27+ This issue has been automatically locked since it was
28+ closed and has not had any activity for 7 days.
29+
30+ If you're experiencing a similar issue, please file a new issue
31+ and reference this one if it's relevant: #${{ github.event.issue.number }}