Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

fix eslint issue #228

Merged
merged 1 commit into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:import/node"
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
ChatGPTError,
ChatMessage,
SendMessageOptions
// eslint-disable-next-line import/no-unresolved
} from 'chatgpt'
import {OpenAIOptions, Options} from './options'
import {retry} from './utils'
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as core from '@actions/core'
import {warning} from '@actions/core'

export const retry = async <T = unknown>(
fn: Function,
Expand All @@ -12,7 +12,7 @@ export const retry = async <T = unknown>(
if (i === times - 1) {
throw error
}
core.warning(`Function failed on try ${i + 1}, retrying...`)
warning(`Function failed on try ${i + 1}, retrying...`)
continue
}
}
Expand Down