Skip to content

Do not throw error on empty approved review#46

Merged
orta merged 1 commit intoOSS-Docs-Tools:masterfrom
hyperupcall:hyperupcall-review-errors
Feb 18, 2025
Merged

Do not throw error on empty approved review#46
orta merged 1 commit intoOSS-Docs-Tools:masterfrom
hyperupcall:hyperupcall-review-errors

Conversation

@hyperupcall
Copy link
Copy Markdown
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
Copy Markdown
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