@tinymce/beehive-flow
Version:
A CLI tool implementing the beehive flow git branching process
27 lines • 1.82 kB
TypeScript
import * as O from 'fp-ts/Option';
import { PushResult, SimpleGit } from 'simple-git';
declare type Option<A> = O.Option<A>;
export interface TempGit {
readonly git: SimpleGit;
readonly dir: string;
}
export declare const initInTempFolder: (bare?: boolean) => Promise<TempGit>;
export declare const cloneIn: (gitUrl: string, dir: string) => Promise<TempGit>;
export declare const cloneInTempFolder: (gitUrl: string, temp?: Option<string>) => Promise<TempGit>;
export declare const checkoutNewBranch: (git: SimpleGit, branchName: string) => Promise<string>;
export declare const currentBranch: (git: SimpleGit) => Promise<string>;
export declare const push: (git: SimpleGit) => Promise<PushResult>;
export declare const pushOneTag: (git: SimpleGit, tagName: string) => Promise<PushResult>;
export declare const currentRevisionShortSha: (git: SimpleGit) => Promise<string>;
export declare const remoteBranchNames: (git: SimpleGit) => Promise<string[]>;
export declare const doesRemoteBranchExist: (git: SimpleGit, branchName: string) => Promise<boolean>;
export declare const pushUnlessDryRun: (dir: string, git: SimpleGit, dryRun: boolean) => Promise<void>;
export declare const branchShouldNotExist: (git: SimpleGit, branchName: string) => Promise<void>;
export declare const checkout: (git: SimpleGit, branchName: string) => Promise<string>;
export declare const checkoutMainBranch: (git: SimpleGit) => Promise<string>;
export declare const detectGitUrl: (g: SimpleGit) => Promise<string>;
export declare const resolveGitUrl: (gitUrlArg: Option<string>, workingDirArg: string) => Promise<string>;
export declare const hasLocalChanges: (workingDir: string, branchName: string) => Promise<boolean>;
export declare const getTags: (g: SimpleGit) => Promise<string[]>;
export {};
//# sourceMappingURL=Git.d.ts.map