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

github validation failed - diff_hunk #411

Closed
louman opened this issue Jul 22, 2021 · 1 comment
Closed

github validation failed - diff_hunk #411

louman opened this issue Jul 22, 2021 · 1 comment

Comments

@louman
Copy link

louman commented Jul 22, 2021

Hi there, I'm setting up pronto and using reek as the first runner to get the ball rolling however I'm getting a github API validation error.

.pronto.yml

all:
  exclude:
    - 'spec/**/*'
verbose: true
github:
  slug: ***
  access_token: ***

command:

 pronto run -f github_pr -c origin/develop --staged --runner reek

error:

Creating pull request comment on 22697
Failed to post: POST https://api.github.com/repos/***/***/pulls/22697/comments: 422 - Validation Failed
Error summary:
  resource: PullRequestReviewComment
  code: invalid
  field: pull_request_review_thread.path
  resource: PullRequestReviewComment
  code: missing_field
  field: pull_request_review_thread.diff_hunk // See: https://docs.github.com/rest

Am I missing any configuration? Any help appreciated.

@louman
Copy link
Author

louman commented Jul 22, 2021

Closing, turns out I had to push my changes before running pronto.

@louman louman closed this as completed Jul 22, 2021
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