MCPcopy
hub / github.com/openclaw/clawsweeper / dispatchPayload

Function dispatchPayload

src/commit-sweeper.ts:748–763  ·  view source on GitHub ↗
(dispatch: CommitFindingDispatch, reportRepo: string)

Source from the content-addressed store, hash-verified

746}
747
748function dispatchPayload(dispatch: CommitFindingDispatch, reportRepo: string): string {
749 return `${JSON.stringify({
750 event_type: "clawsweeper_commit_finding",
751 client_payload: {
752 target_repo: dispatch.targetRepo,
753 commit_sha: dispatch.sha,
754 report_repo: reportRepo,
755 report_path: dispatch.reportPath,
756 report_url: dispatch.reportUrl,
757 highest_severity: dispatch.highestSeverity,
758 check_conclusion: dispatch.checkConclusion,
759 source_run_url: githubRunUrl(),
760 enabled: true,
761 },
762 })}\n`;
763}
764
765function workflowDispatchArgs(
766 dispatch: CommitFindingDispatch,

Callers 2

dispatchCommitFindingFunction · 0.85
dispatchFindingsCommandFunction · 0.85

Calls 1

githubRunUrlFunction · 0.85

Tested by

no test coverage detected