linuxdeepin / action-cppcheck

MIT License
5 stars 6 forks source link

The action is failing because the PR information is missing #3

Closed ikerexxe closed 2 years ago

ikerexxe commented 2 years ago

The cppcheck action seems to be executing correctly until it tries to report the errors in the PR. Then, some information for the PR is missing and it fails.

2022/03/14 14:00:55 POST https://api.github.com/repos/SSSD/sssd/pulls/5762/reviews: 422 Unprocessable Entity [{Resource: Field: Code: Message:Pull request review thread line must be part of the diff and Pull request review thread diff hunk can't be blank}]
Error: Process completed with exit code 1.

For further information you can check the full log.

ikerexxe commented 2 years ago

It seems like the PR metadata is malformed.

myml commented 2 years ago

Thank you for your feedback. Fixed by https://github.com/linuxdeepin/action-cppcheck/pull/5 Test result https://github.com/myml/sssd/runs/5549045328?check_suite_focus=true Please use v0.0.10 version