-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: friendly error messages, add review comment output #374
base: main
Are you sure you want to change the base?
Conversation
src/main.ts
Outdated
state: 'closed' | ||
}) | ||
} catch (error) { | ||
if (error instanceof Error) throw new Error(errors.closingPullRequest) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'd want to somehow log the original error
regardless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new commit just dropped - still haven't smoke tested, buyer beware
👋 ping @mtfoley - is there anything I can do to help here? |
What type of PR is this? (check all applicable)
Description
Adds try/catch blocks around octokit REST api calls to allow friendly error messages.
Adds new output for "review-comment" that will be set whenever the review comment body is known.
Related Tickets & Documents
Resolves #368
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?