update dependencies (#96)
* Bump @actions/core from 1.3.0 to 1.6.0 * Bump @actions/github from 4.0.0 to 5.0.0 * Bump @octokit/rest from 18.5.6 to 18.12.0 * Bump strip-ansi from 6.0.0 to 6.0.1
This commit is contained in:
15
src/main.ts
15
src/main.ts
@@ -87,20 +87,21 @@ export async function run(): Promise<void> {
|
||||
const existingIssueNumber =
|
||||
core.getInput('dedupe_issues') === 'true'
|
||||
? await issue.getExistingIssueNumber(
|
||||
octokit.issues.listForRepo,
|
||||
octokit.rest.issues.listForRepo,
|
||||
github.context.repo
|
||||
)
|
||||
: null
|
||||
|
||||
if (existingIssueNumber !== null) {
|
||||
const {data: createdComment} = await octokit.issues.createComment({
|
||||
...github.context.repo,
|
||||
issue_number: existingIssueNumber,
|
||||
body: option.body
|
||||
})
|
||||
const {data: createdComment} =
|
||||
await octokit.rest.issues.createComment({
|
||||
...github.context.repo,
|
||||
issue_number: existingIssueNumber,
|
||||
body: option.body
|
||||
})
|
||||
core.debug(`comment ${createdComment.url}`)
|
||||
} else {
|
||||
const {data: createdIssue} = await octokit.issues.create({
|
||||
const {data: createdIssue} = await octokit.rest.issues.create({
|
||||
...github.context.repo,
|
||||
...option
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user