git-upstream-template
Version:
Synchronize git templates generated by GitHub as if they were forks
20 lines (19 loc) • 737 B
TypeScript
export interface Commit {
message: string;
hash: string;
timestamp: number;
}
export interface Update {
package: string;
version: string;
}
export declare function git(cmd: string, { noPager, verbose }?: {
noPager?: boolean;
verbose?: boolean;
}): Promise<string>;
export declare function addRemote(remoteName: string, remoteUrl: string): Promise<boolean>;
export declare function removeRemote(remoteName: string): Promise<boolean>;
export declare function getCurrentBranchName(): Promise<any>;
export declare function getUpdates(updateBranch: string): Promise<Commit[]>;
export declare function successful(fn: () => any): Promise<boolean>;
export declare function applyUpdate(commit: Commit): Promise<void>;