@grept/octokit
Version:
Octokit adapter module for other grt plugins
12 lines (11 loc) • 421 B
TypeScript
import * as Octokit from '@octokit/rest';
export declare class OctokitService {
getOctokit(token?: string): Octokit;
getFileContent(owner: any, repo: any, path: any, token?: string): Promise<string>;
getPackageJson(owner: any, repo: any, token?: string): Promise<any>;
getRepos({ org, user, token }: {
org: string;
user: string;
token?: string;
}): Promise<string[] | null>;
}