add hints

This commit is contained in:
OpportunityLiu
2020-03-31 22:59:54 +08:00
Unverified
parent 7a6538cab8
commit fb01b4e3c8
5 changed files with 53 additions and 34 deletions
+14 -1
View File
@@ -8,9 +8,22 @@ function makeOpt(ref: string): { cwd: string } {
}
export type RefDic = {
/** branches */
heads: Record<string, string>;
/** tags */
tags: Record<string, string>;
pull: Record<number, { head?: string; merge?: string }>;
/** pull requests */
pull: Record<
number,
{
/** the current state of the pull request */
head: string;
/** the current branch we're merging onto */
base?: string;
/** merge result */
merge?: string;
}
>;
};
export async function lsRemote(): Promise<RefDic> {