You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e48fbfc
Browse filesBrowse the repository at this point in the historyBrowse files
fix: transform cpp-linter API into git-bot-feedback API
add a test that reuses a previous PR review comment.
This involves a new asset. I checked the expected result as a full PR review JSON payload.
all this just to cover 8 lines; glad I did it because it fixes a bug when transforming a cpp-linter suggestion into a review comment (per the differences in API between cpp-linter and git-bot-feedback).
EDIT: switch to diagnostic commonly present despite different versions of clang.
"body": "<!-- cpp linter action -->\n## Cpp-linter Review\n### Used clang-format v16.0.0\n### Used clang-tidy v16.0.0\n\nOnly 8 out of 9 concerns fit within this pull request's diff.\n\n1 suggestions were duplicates of previous reviews.\n\n<details><summary>Click here for a patch of fixes outside the diff</summary><p>\n\n```diff\n--- a/src/demo.hpp\n+++ b/src/demo.hpp\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n```\n\n</p></details>\n\n\nHave any feedback or feature suggestions? [Share it here.](https://github.com/cpp-linter/cpp-linter-action/issues)",
"body": "<!-- cpp linter action -->\n## Cpp-linter Review\n### Used clang-format v18.1.8\n### Used clang-tidy v18.1.8\n\n\nHave any feedback or feature suggestions? [Share it here.](https://github.com/cpp-linter/cpp-linter-action/issues)",
"body": "<!-- cpp linter action -->\n### clang-tidy diagnostic(s)\n- statement should be inside braces [[readability-braces-around-statements](https://clang.llvm.org/extra/clang-tidy/checks/readability/braces-around-statements.html)]\n\n```suggestion\n printf(\"Hello world!\\n\");\n```\n",
33
+
"line": 10,
34
+
"path": "src/demo.cpp"
35
+
},
36
+
{
37
+
"body": "<!-- cpp linter action -->\n### clang-tidy diagnostic(s)\n- use a trailing return type for this function [[modernize-use-trailing-return-type](https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-trailing-return-type.html)]\n- statement should be inside braces [[readability-braces-around-statements](https://clang.llvm.org/extra/clang-tidy/checks/readability/braces-around-statements.html)]\n\n```suggestion\n return 0;\n}\n```\n",
0 commit comments