Skip to content

Commit 4994868

Browse files
Merge pull request #244 from technote-space/chore/#236
chore: remove options (#236)
2 parents 8869f1a + 6eb1cf7 commit 4994868

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/utils.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,7 @@ export const getRefspec = (ref: string | Context, origin = 'origin'): string =>
8888

8989
export const getAccessToken = (required: boolean): string => getInput('GITHUB_TOKEN', {required});
9090

91-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
92-
// @ts-ignore
93-
export const getOctokit = (token?: string): Octokit => new GitHub(token ?? getAccessToken(true), {
94-
log: {
95-
// eslint-disable-next-line @typescript-eslint/no-empty-function
96-
warn: function(): void {
97-
},
98-
},
99-
});
91+
export const getOctokit = (token?: string): Octokit => new GitHub(token ?? getAccessToken(true));
10092

10193
export const getActor = (): string => process.env.GITHUB_ACTOR || '';
10294

tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"compilerOptions": {
3-
/** to suppress @actions/github error **/
4-
"skipLibCheck": true,
5-
63
/* Basic Options */
74
// "incremental": true, /* Enable incremental compilation */
85
"target": "es6",

0 commit comments

Comments
 (0)