/** * PR Linker — Links pull requests to external tickets (JIRA, ADO) * * Called after PR creation to create remote links / hyperlinks * so external tools show the PR in the issue's UI. * * @module sync/pr-linker */ import { Logger } from '../utils/logger.js'; export interface PrLinkRequest { projectRoot: string; incrementId: string; prUrl: string; prNumber: number; branch: string; } export interface PrLinkResult { linked: { provider: string; key: string; }[]; errors: { provider: string; key: string; error: string; }[]; } /** * Link a PR to all external tickets associated with this increment. * Non-blocking: errors are collected, never thrown. */ export declare function linkPrToExternalTickets(request: PrLinkRequest, logger?: Logger): Promise; /** * Resolve the external ticket key for branch naming. * Returns the JIRA key or ADO ID prefix if available. */ export declare function resolveExternalBranchPrefix(metadata: any): string | null; //# sourceMappingURL=pr-linker.d.ts.map