[libgweather/style-check-feedback] fixup! ci: Post the style check output as a comment on the MR



commit 1438bd228f33af02a5fd1f5d6c993e0da94acbc0
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Oct 19 16:13:47 2021 +0100

    fixup! ci: Post the style check output as a comment on the MR

 .gitlab-ci/run-style-check.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci/run-style-check.sh b/.gitlab-ci/run-style-check.sh
index 5269c70e..7b2abb8a 100755
--- a/.gitlab-ci/run-style-check.sh
+++ b/.gitlab-ci/run-style-check.sh
@@ -20,7 +20,8 @@ format_diff="$(<format-diff.log)"
 
 if [ -n "${format_diff}" ]; then
   echo 'body=```diff' > format.log
-  cat format-diff.log >> format.log
+#  cat format-diff.log >> format.log
+  sed -e 's|^\+|\\+|g' format-diff.log >> format.log
 #  sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' format-diff.log >> format.log
   echo '```' >> format.log
   [ -n "$CI_MERGE_REQUEST_IID" ] && curl \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]