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

Validation failed 422 when pronto tries to comment on a Pull Request - pull_request_review_thread.diff_hunk #420

Closed
niltonvasques opened this issue Feb 16, 2022 · 1 comment

Comments

@niltonvasques
Copy link

Pronto version: 0.11

Log:

Failed to post: POST https://api.github.com/repos/******/pulls/***/comments: 422 - Validation Failed
--
9331 | Error summary:
9332 | resource: PullRequestReviewComment
9333 | code: invalid
9334 | field: pull_request_review_thread.path
9335 | resource: PullRequestReviewComment
9336 | code: missing_field
9337 | field: pull_request_review_thread.diff_hunk // See: https://docs.github.com/rest

Although pronto cannot comment, it can update the PR status:

image

@niltonvasques
Copy link
Author

Solved. The issue were happening because the pull request was opened to another branch different from master.

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

No branches or pull requests

1 participant