github-pages-deploy-action/node_modules/@actions/github/lib/github.d.ts

12 lines
459 B
TypeScript
Raw Normal View History

2020-01-28 13:08:03 +08:00
import * as Context from './context';
2020-06-06 22:11:37 +08:00
import { GitHub } from './utils';
import { OctokitOptions } from '@octokit/core/dist-types/types';
2020-01-28 13:08:03 +08:00
export declare const context: Context.Context;
2020-06-06 22:11:37 +08:00
/**
* Returns a hydrated octokit ready to use for GitHub Actions
*
* @param token the repo PAT or GITHUB_TOKEN
* @param options other options to set
*/
export declare function getOctokit(token: string, options?: OctokitOptions): InstanceType<typeof GitHub>;