UNPKG

review-copilot

Version:

ReviewCopilot - AI-powered code review assistant with customizable prompts

14 lines (13 loc) 962 B
import { CreateReviewCommentParams, IGitPlatformService, GitPlatformDetails, createIssueComment, GetFileContentParams, ReplyToReviewCommentParams, ReplyToCommentParams } from './services.types'; export declare class GitHubService implements IGitPlatformService { private client; constructor(token: string); createIssueComment({ owner, repo, issue_number, body, }: createIssueComment): Promise<void>; createReviewComment({ owner, repo, pullNumber: pullNumber, body, commitId, path, line, side, startLine, startSide, inReplyTo, subjectType, }: CreateReviewCommentParams): Promise<void>; replyToComment(params: ReplyToCommentParams): Promise<void>; replyToReviewComment(params: ReplyToReviewCommentParams): Promise<void>; getPRDetails(): Promise<GitPlatformDetails | undefined>; getCurrentBranch(): Promise<string>; getCommitMessage(): Promise<string>; getFileContent(params: GetFileContentParams): Promise<string | null>; }