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



commit 20742d07962c32a6372d6e9cd7628bca29f93c4d
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Oct 19 16:04:43 2021 +0100

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

 .gitlab-ci/run-style-check.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci/run-style-check.sh b/.gitlab-ci/run-style-check.sh
index 94bd21dd..5269c70e 100755
--- a/.gitlab-ci/run-style-check.sh
+++ b/.gitlab-ci/run-style-check.sh
@@ -19,9 +19,10 @@ exit_status=$?
 format_diff="$(<format-diff.log)"
 
 if [ -n "${format_diff}" ]; then
-  echo -n 'body=```diff\n' > format.log
-  sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' format-diff.log >> format.log
-  echo -n '\n```' >> format.log
+  echo 'body=```diff' > format.log
+  cat 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 \
     --request POST \
     --header "Private-Token: $STYLE_CHECK_TOKEN" \


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