change-string-case/node_modules/@actions/github/lib/github.d.ts

12 lines
513 B
TypeScript
Raw Normal View History

2022-11-04 00:55:07 +08:00
import * as Context from './context';
import { GitHub } from './utils';
2023-10-26 04:27:07 +08:00
import { OctokitOptions, OctokitPlugin } from '@octokit/core/dist-types/types';
2022-11-04 00:55:07 +08:00
export declare const context: Context.Context;
/**
* Returns a hydrated octokit ready to use for GitHub Actions
*
* @param token the repo PAT or GITHUB_TOKEN
* @param options other options to set
*/
2023-10-26 04:27:07 +08:00
export declare function getOctokit(token: string, options?: OctokitOptions, ...additionalPlugins: OctokitPlugin[]): InstanceType<typeof GitHub>;