Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit 10c1eef

Browse files
committed
fix(build): exclude lib check
use real import and exlude lib checking as there is a problem with the type layer [ch8743]
1 parent 38f2c17 commit 10c1eef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/github.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Annotations } from '@/annotations'
22
import { Context } from '@actions/github/lib/context'
33
import { Octokit } from '@octokit/rest'
4-
5-
const github = require('@actions/github')
4+
import github from '@actions/github'
65

76
export class Github {
87
private readonly client: Octokit
@@ -13,9 +12,9 @@ export class Github {
1312
private check: Octokit.ChecksCreateResponse | null = null
1413

1514
public constructor(token: string) {
16-
this.client = new github.GitHub({
15+
this.client = (new github.GitHub({
1716
auth: token,
18-
})
17+
}) as unknown) as Octokit
1918
this.context = github.context
2019
this.owner = this.context.repo.owner
2120
this.repo = this.context.repo.repo

0 commit comments

Comments
 (0)