UNPKG

auto-version-tool

Version:

根据git commit历史自动修改版本号并生成changelog的CLI工具 (Automatically bump version & generate changelog based on git commits)

23 lines 1.02 kB
import { Config } from "../types/Config"; import { GitBranch, GitCommit, GitTag } from "../types/Git"; export declare class GitService { private git; private config; constructor(config: Config); isGitRepository(): Promise<boolean>; isWorkingDirectoryClean(): Promise<boolean>; checkoutBranch(branch: string): Promise<void>; getCurrentBranch(): Promise<string>; getLatestTag(): Promise<string | null>; getCommitsSinceLastTag(branch: string): Promise<GitCommit[]>; getCommitsBetweenTags(from: string, to: string): Promise<GitCommit[]>; getAllTags(): Promise<GitTag[]>; commitVersionBump(version: string): Promise<void>; createTag(version: string, message?: string): Promise<void>; pushChanges(branch: string, withTags?: boolean): Promise<void>; getBranches(): Promise<GitBranch[]>; getRemoteUrl(): Promise<string | null>; hasUncommittedChanges(): Promise<boolean>; getLastCommit(): Promise<GitCommit | null>; } //# sourceMappingURL=GitService.d.ts.map