import { GitStatus } from "../service/git_platform.service"; import { AddOnConfig } from "../value_object/add_on_config.vo"; import { VersionTag } from "../value_object/version_tag.vo"; import { Issue } from "./issue.entity"; export interface IssueWithPR { issueNumber: number; prNumber: number; } export interface IGitPlatformService { createIssue(issue: Issue): Promise; createPR(issue: Issue, branchName: string, baseBranch?: string): Promise; configGitPlatform(config: AddOnConfig): any; pushBranch(branchName: string): Promise; getBranchName(): Promise; getGitRepoUrl(): Promise; getLatestTag(): Promise; fetchFromRemote(): Promise; findDifferenceFromMaster(branchName: string, issueBranchPattern: string): Promise; getLatestCommitId(branchName: string): Promise; checkoutToBranchWithReset(branchName: string): Promise; checkoutToBranchWithoutReset(branchName: string): Promise; checkoutToFeatureBranch(branchName: string): Promise; stageAllChanges(): Promise; createDummyChange(): Promise; commitWithMessage(message: string): Promise; deleteLocalBranch(branchName: string): Promise; deleteRemoteBranch(branchName: string): Promise; tagCommit(branchName: string, tag: VersionTag): Promise; getBranches(): Promise; getLatestBranchByCommitDate(): Promise; pullFrom(branchName: string): Promise; checkUnstagedChanges(): Promise; stash(id: string): Promise; applyStash(id: string): Promise; checkConflict(): Promise; abortMerge(): Promise; getSortedBranchesByCommitDate(): Promise; gitInit(): Promise; isThereRemoteUrl(): Promise; removeRemoteUrl(): Promise; setRemoteUrl(remoteUrl: string): Promise; isGitRepo(): boolean; checkHeadExist(): Promise; getUpstreamBranch(branchName: string): Promise; pushBranchWithUpstream(branchName: string): Promise; checkRemoteBranchExist(branchName: string): Promise; undoCommitAndModification(): Promise; }