pr-sizewise
Version:
A CLI tool that measures and reports pull request sizes for GitHub and GitLab, helping teams maintain manageable code changes.
19 lines • 859 B
TypeScript
import type { VCSProvider, VCSProviderConfig, DiffInfo, Comment, PullRequestInfo } from './base';
/**
* GitHub provider implementation
*/
export declare class GitHubProvider implements VCSProvider {
private octokit;
private owner;
private repo;
initialize(config: VCSProviderConfig): Promise<void>;
getDiffs(pullRequestId: string): Promise<DiffInfo[]>;
getComments(pullRequestId: string): Promise<Comment[]>;
createComment(pullRequestId: string, body: string): Promise<Comment>;
updateComment(pullRequestId: string, commentId: string, body: string): Promise<Comment>;
getLabels(pullRequestId: string): Promise<string[]>;
setLabels(pullRequestId: string, labels: string[]): Promise<void>;
getPullRequest(pullRequestId: string): Promise<PullRequestInfo>;
private mapState;
}
//# sourceMappingURL=github.d.ts.map