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
31 lines · 847 BRaw
1name: Auto-close duplicate issues
2description: Auto-closes issues that are duplicates of existing issues
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: write
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 }}
31 STATSIG_API_KEY: ${{ secrets.STATSIG_API_KEY }}