MCPcopy Create free account
hub / github.com/anthropics/claude-code / triggerDedupeWorkflow

Function triggerDedupeWorkflow

scripts/backfill-duplicate-comments.ts:47–70  ·  view source on GitHub ↗
(
  owner: string,
  repo: string,
  issueNumber: number,
  token: string,
  dryRun: boolean = true
)

Source from the content-addressed store, hash-verified

45}
46
47async 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
72async function backfillDuplicateComments(): Promise<void> {
73 console.log("[DEBUG] Starting backfill duplicate comments script");

Callers 1

Calls 1

githubRequestFunction · 0.70

Tested by

no test coverage detected