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



commit db4cab5b9aee933813aa17dc905cdcb50b946066
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Oct 19 15:08:57 2021 +0100

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

 .gitlab-ci/run-style-check.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci/run-style-check.sh b/.gitlab-ci/run-style-check.sh
index 16573180..55ac4e14 100755
--- a/.gitlab-ci/run-style-check.sh
+++ b/.gitlab-ci/run-style-check.sh
@@ -19,9 +19,9 @@ exit_status=$?
 format_diff="$(<format-diff.log)"
 
 if [ -n "${format_diff}" ]; then
-  echo \`\`\`diff > format-diff.log
+  echo 'body=```diff' > format-diff.log
   echo "${format_diff}" >> format-diff.log
-  echo \`\`\` >> format-diff.log
+  echo '```' >> format-diff.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]