UNPKG

513 BTypeScriptView Raw
1import * as Context from './context';
2import { GitHub } from './utils';
3import { OctokitOptions, OctokitPlugin } from '@octokit/core/dist-types/types';
4export declare const context: Context.Context;
5/**
6 * Returns a hydrated octokit ready to use for GitHub Actions
7 *
8 * @param token the repo PAT or GITHUB_TOKEN
9 * @param options other options to set
10 */
11export declare function getOctokit(token: string, options?: OctokitOptions, ...additionalPlugins: OctokitPlugin[]): InstanceType<typeof GitHub>;