Skip to content

Commit a009c38

Browse files
committed
Fix new TS issues
1 parent 39376c4 commit a009c38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/action.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function createAnIssue (tools: Toolkit) {
5454
q: `is:${searchExistingType} is:issue repo:${process.env.GITHUB_REPOSITORY} in:title ${templated.title}`
5555
})
5656
existingIssue = existingIssues.data.items.find(issue => issue.title === templated.title)
57-
} catch (err) {
57+
} catch (err: any) {
5858
tools.exit.failure(err)
5959
}
6060
if (existingIssue) {
@@ -70,7 +70,7 @@ export async function createAnIssue (tools: Toolkit) {
7070
})
7171
setOutputs(tools, issue)
7272
tools.exit.success(`Updated issue ${existingIssue.title}#${existingIssue.number}: ${existingIssue.html_url}`)
73-
} catch (err) {
73+
} catch (err: any) {
7474
tools.exit.failure(err)
7575
}
7676
}
@@ -92,7 +92,7 @@ export async function createAnIssue (tools: Toolkit) {
9292

9393
setOutputs(tools, issue)
9494
tools.log.success(`Created issue ${issue.data.title}#${issue.data.number}: ${issue.data.html_url}`)
95-
} catch (err) {
95+
} catch (err: any) {
9696
// Log the error message
9797
const errorMessage = `An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check ${template}!`
9898
tools.log.error(errorMessage)

0 commit comments

Comments
 (0)