CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | /**
* PR triage — fire-and-forget hook that would suggest labels and reviewers.
* Stub implementation: logs the request but does not call out to the AI yet.
*/
export interface PrTriageInput {
ownerName: string;
repoName: string;
repositoryId: string;
prId: string;
prAuthorId: string;
title: string;
body: string;
baseBranch: string;
headBranch: string;
}
export async function triggerPrTriage(input: PrTriageInput): Promise<void> {
// Intentionally a no-op for now; downstream consumers only await the
// promise for catch handlers. The implementation will be filled in
// alongside the AI triage pipeline.
if (process.env.DEBUG_PR_TRIAGE === "1") {
console.log(
"[pr-triage] queued",
input.ownerName,
input.repoName,
input.prId,
);
}
}
|