Skip to content
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

Do not throw error on empty approved review #46

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

hyperupcall
Copy link
Contributor

Hello Again!

When performing a GitHub code review, approving the PR with an no typed body would throw an error (would look something like this.

As noted in the code comments, when doing a GitHub review, it is possible to request changes, only comment, or approve. The GitHub web UI only allows successfully sending a review with no body if the PR is "approved".

This fixes that case so no error is thrown. I've tested it here and it seems to work

@orta orta merged commit b18d7f6 into OSS-Docs-Tools:master Feb 18, 2025
2 checks passed
@orta
Copy link
Collaborator

orta commented Feb 18, 2025

This seems very reasonable to me 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants