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 workflow to backfill duplicate commentsBrowse files
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Boris Cherny authored on Aug 8, 2025 parent 9ced2a3 · commit 399a7dcf2f02
1 changed file+44 -0compared with 9ced2a3
A.github/workflows/backfill-duplicate-comments.yml
@@ -1,0 +1,44 @@
1+name: Backfill Duplicate Comments
2+description: Triggers duplicate detection for old issues that don't have duplicate comments
3+
4+on:
5+ workflow_dispatch:
6+ inputs:
7+ days_back:
8+ description: 'How many days back to look for old issues'
9+ required: false
10+ default: '90'
11+ type: string
12+ dry_run:
13+ description: 'Dry run mode (true to only log what would be done)'
14+ required: false
15+ default: 'true'
16+ type: choice
17+ options:
18+ - 'true'
19+ - 'false'
20+
21+jobs:
22+ backfill-duplicate-comments:
23+ runs-on: ubuntu-latest
24+ timeout-minutes: 30
25+ permissions:
26+ contents: read
27+ issues: read
28+ actions: write
29+
30+ steps:
31+ - name: Checkout repository
32+ uses: actions/checkout@v4
33+
34+ - name: Setup Bun
35+ uses: oven-sh/setup-bun@v2
36+ with:
37+ bun-version: latest
38+
39+ - name: Backfill duplicate comments
40+ run: bun run scripts/backfill-duplicate-comments.ts
41+ env:
42+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+ DAYS_BACK: ${{ inputs.days_back }}
44+ DRY_RUN: ${{ inputs.dry_run }}