Skip to content

Commit

Permalink
Bump typescript from 4.2.4 to 4.9.3 (#366)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Amoscato <nick@amoscato.com>
  • Loading branch information
dependabot[bot] and namoscato authored Nov 19, 2022
1 parent d09b519 commit 562ac0b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"octokit",
"repos",
"tinify"
]
}
],
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
"nock": "^13.2.9",
"prettier": "^2.7.1",
"ts-jest": "^24.3.0",
"typescript": "^4.2.4"
"typescript": "^4.9.3"
}
}
2 changes: 1 addition & 1 deletion src/git/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const supportedEvents = ['push', 'pull_request'] as const

type SupportedEvent = typeof supportedEvents[number]

interface ContextBase<T> extends Context {
interface ContextBase<T> extends Omit<Context, 'payload'> {
eventName: SupportedEvent
payload: T
}
Expand Down
7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ async function run(): Promise<void> {
endGroup()
}
} catch (error) {
setFailed(error.message)
debug(error.stack)
setFailed(error instanceof Error ? error.message : String(error))

if (error instanceof Error && error.stack) {
debug(error.stack)
}
}
}

Expand Down

0 comments on commit 562ac0b

Please sign in to comment.