File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- const { Octokit } = require ( '@octokit/rest' )
2
1
const core = require ( '@actions/core' )
3
2
const { join } = require ( 'path' )
4
3
const semver = require ( 'semver' )
@@ -9,7 +8,6 @@ const { request: fetch } = require('undici')
9
8
const { getPublishTag, block, noop } = require ( './util' )
10
9
11
10
class ReleaseManager {
12
- #octokit
13
11
#owner
14
12
#repo
15
13
#cwd
@@ -28,7 +26,6 @@ class ReleaseManager {
28
26
assert ( pr , 'pr is required' )
29
27
assert ( defaultTag , 'defaultTag is required' )
30
28
31
- this . #octokit = new Octokit ( { auth : token } )
32
29
this . #owner = repo . split ( '/' ) [ 0 ]
33
30
this . #repo = repo . split ( '/' ) [ 1 ]
34
31
this . #cwd = cwd
@@ -47,7 +44,9 @@ class ReleaseManager {
47
44
}
48
45
49
46
async run ( ) {
50
- const { data : pullRequest } = await this . #octokit. rest . pulls . get ( {
47
+ const { Octokit} = await import ( '@octokit/rest' )
48
+ const octokit = new Octokit ( { auth : token } )
49
+ const { data : pullRequest } = await octokit . rest . pulls . get ( {
51
50
owner : this . #owner,
52
51
repo : this . #repo,
53
52
pull_number : this . #pr,
You can’t perform that action at this time.
0 commit comments