(dispatch: CommitFindingDispatch, reportRepo: string)
| 746 | } |
| 747 | |
| 748 | function 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 | |
| 765 | function workflowDispatchArgs( |
| 766 | dispatch: CommitFindingDispatch, |
no test coverage detected