Blame · Line-by-line history
pr-triage.ts
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| 0316dbb | 1 | /** |
| 2 | * PR triage — fire-and-forget hook that would suggest labels and reviewers. | |
| 3 | * Stub implementation: logs the request but does not call out to the AI yet. | |
| 4 | */ | |
| 5 | ||
| 6 | export interface PrTriageInput { | |
| 7 | ownerName: string; | |
| 8 | repoName: string; | |
| 9 | repositoryId: string; | |
| 10 | prId: string; | |
| 11 | prAuthorId: string; | |
| 12 | title: string; | |
| 13 | body: string; | |
| 14 | baseBranch: string; | |
| 15 | headBranch: string; | |
| 16 | } | |
| 17 | ||
| 18 | export async function triggerPrTriage(input: PrTriageInput): Promise<void> { | |
| 19 | // Intentionally a no-op for now; downstream consumers only await the | |
| 20 | // promise for catch handlers. The implementation will be filled in | |
| 21 | // alongside the AI triage pipeline. | |
| 22 | if (process.env.DEBUG_PR_TRIAGE === "1") { | |
| 23 | console.log( | |
| 24 | "[pr-triage] queued", | |
| 25 | input.ownerName, | |
| 26 | input.repoName, | |
| 27 | input.prId, | |
| 28 | ); | |
| 29 | } | |
| 30 | } |