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

Remove timeout-minutes from lock-closed-issues workflow (#5455)Browse files
The 10-minute timeout is unnecessary for this workflow as it typically
completes quickly. Removing it allows the workflow to use the default
GitHub Actions timeout (6 hours for public repos, 72 hours for private),
providing more flexibility if the workflow needs to process a large
number of issues.

Also fixed trailing whitespace inconsistencies in the script.

馃 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
Ashwin Bhat authored on Aug 9, 2025 路 GitHub committed on Aug 9, 2025 parent ce5b916 路 commit e05411140ddf
1 changed file+4 -5compared with ce5b916
M.github/workflows/lock-closed-issues.yml
@@ -15,7 +15,6 @@
1515 jobs:
1616 lock-closed-issues:
1717 runs-on: ubuntu-latest
18- timeout-minutes: 10
1918 steps:
2019 - name: Lock closed issues after 7 days of inactivity
2120 uses: actions/github-script@v7
@@ -23,13 +22,13 @@
2322 script: |
2423 const sevenDaysAgo = new Date();
2524 sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7);
26-
25+
2726 const lockComment = `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.`;
28-
27+
2928 let page = 1;
3029 let hasMore = true;
3130 let totalLocked = 0;
32-
31+
3332 while (hasMore) {
3433 // Get closed issues (pagination)
3534 const { data: issues } = await github.rest.issues.listForRepo({
@@ -89,5 +88,5 @@
8988
9089 page++;
9190 }
92-
91+
9392 console.log(`Total issues locked: ${totalLocked}`);