File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import {Context} from '@actions/github/lib/context'
44import { GitHub } from '@actions/github/lib/utils'
55import * as glob from '@actions/glob'
66import * as io from '@actions/io'
7+ import type { OctokitOptions , OctokitPlugin } from '@octokit/core/types'
78
89const AsyncFunction = Object . getPrototypeOf ( async ( ) => null ) . constructor
910
@@ -12,6 +13,11 @@ export declare type AsyncFunctionArguments = {
1213 core : typeof core
1314 github : InstanceType < typeof GitHub >
1415 octokit : InstanceType < typeof GitHub >
16+ getOctokit : (
17+ token : string ,
18+ options ?: OctokitOptions ,
19+ ...additionalPlugins : OctokitPlugin [ ]
20+ ) => InstanceType < typeof GitHub >
1521 exec : typeof exec
1622 glob : typeof glob
1723 io : typeof io
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ async function main(): Promise<void> {
6666 __original_require__ : __non_webpack_require__ ,
6767 github,
6868 octokit : github ,
69+ getOctokit,
6970 context,
7071 core,
7172 exec,
You can’t perform that action at this time.
0 commit comments