Fail to report diff(unified format) result to github-pr-check #1352
-
Hi there, Thank you for developing such amazing tool. Here is my pr, I use my own github-action to check clang-format, and with tee option I got a output like this in the summary log Processing 1 files: ./cpp_src/main_atcoder.cpp
--- ./cpp_src/main_atcoder.cpp (original)
+++ ./cpp_src/main_atcoder.cpp (reformatted)
@@ -36,8 +36,7 @@
for (int j = 0; j <= W; ++j) {
if (i == 0) dp[i][a[j]] = 1;
chmin(dp[i + 1][j], dp[i][j]);
- if (j >= a[i])
- {
+ if (j >= a[i]) {
chmin(dp[i + 1][j], dp[i][j - a[i]] + 1)
}; and I parse this output like this /run-clang-format.py "$@" 2>&1 \
reviewdog -name=clang-format-lint-action -f=diff -tee \
-reporter=github-pr-review \
-filter-mode=nofilter \
-fail-on-error=true \
-level=error \ however, I can't get any report on my pr page by reviewdog. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
ok, finally I find the reason... /run-clang-format.py "$@" 2>&1 |tail -n +2 | \
reviewdog -name=clang-format-lint-action -f=diff -tee \
-reporter=github-pr-review \
-filter-mode=nofilter \
-fail-on-error=true \
-level=error \ hope this can help other people |
Beta Was this translation helpful? Give feedback.
ok, finally I find the reason...
The diff(unified format) format should not includes the line:
Processing 1 files: ./cpp_src/main_atcoder.cpp
After I skip this line with tail command it works!!!:
hope this can help other people