/** * Git PR Context Gatherer * * Extracts PR context from git branches for validation */ import { PRContext } from './types'; import { JiraClient } from '@nihal1983/context-gatherer'; export interface GitPRContextOptions { repoPath: string; branch: string; baseBranch?: string; jiraClient?: JiraClient; } export declare class GitPRContextGatherer { private repoPath; private branch; private baseBranch; private jiraClient?; constructor(options: GitPRContextOptions); /** * Gather full PR context from git branch */ gatherContext(): Promise; /** * Get commit message from branch HEAD */ private getCommitMessage; /** * Parse commit message into title and description */ private parseCommitMessage; /** * Extract ticket ID from commit message */ private extractTicketId; /** * Get list of changed files with content */ private getChangedFiles; /** * Get file statistics (additions/deletions) */ private getFileStats; /** * Get full diff for context */ getDiff(): string; }