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

claude-code / .github / workflows / auto-close-duplicates.yml
30 lines · 842 BRaw
1name: Auto-close duplicate issues (DRY RUN)
2description: Dry run - logs issues that would be auto-closed as duplicates after 3 days if no response
3on:
4 schedule:
5 - cron: "0 9 * * *"
6 workflow_dispatch:
7
8jobs:
9 auto-close-duplicates:
10 runs-on: ubuntu-latest
11 timeout-minutes: 10
12 permissions:
13 contents: read
14 issues: read
15
16 steps:
17 - name: Checkout repository
18 uses: actions/checkout@v4
19
20 - name: Setup Bun
21 uses: oven-sh/setup-bun@v2
22 with:
23 bun-version: latest
24
25 - name: Auto-close duplicate issues
26 run: bun run scripts/auto-close-duplicates.ts
27 env:
28 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
30 GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}