( owner: string, repo: string, issueNumber: number, token: string, dryRun: boolean = true )
| 45 | } |
| 46 | |
| 47 | async function triggerDedupeWorkflow( |
| 48 | owner: string, |
| 49 | repo: string, |
| 50 | issueNumber: number, |
| 51 | token: string, |
| 52 | dryRun: boolean = true |
| 53 | ): Promise<void> { |
| 54 | if (dryRun) { |
| 55 | console.log(`[DRY RUN] Would trigger dedupe workflow for issue #${issueNumber}`); |
| 56 | return; |
| 57 | } |
| 58 | |
| 59 | await githubRequest( |
| 60 | `/repos/${owner}/${repo}/actions/workflows/claude-dedupe-issues.yml/dispatches`, |
| 61 | token, |
| 62 | 'POST', |
| 63 | { |
| 64 | ref: 'main', |
| 65 | inputs: { |
| 66 | issue_number: issueNumber.toString() |
| 67 | } |
| 68 | } |
| 69 | ); |
| 70 | } |
| 71 | |
| 72 | async function backfillDuplicateComments(): Promise<void> { |
| 73 | console.log("[DEBUG] Starting backfill duplicate comments script"); |
no test coverage detected