[libgweather/style-check-feedback] fixup! ci: Post the style check output as a comment on the MR
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/style-check-feedback] fixup! ci: Post the style check output as a comment on the MR
- Date: Tue, 19 Oct 2021 15:21:31 +0000 (UTC)
commit f609973659d1b1e3a6b72e596466d9cfe153ef9c
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Oct 19 16:21:25 2021 +0100
fixup! ci: Post the style check output as a comment on the MR
.gitlab-ci/run-style-check.sh | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci/run-style-check.sh b/.gitlab-ci/run-style-check.sh
index 7b2abb8a..39df3e61 100755
--- a/.gitlab-ci/run-style-check.sh
+++ b/.gitlab-ci/run-style-check.sh
@@ -20,14 +20,12 @@ format_diff="$(<format-diff.log)"
if [ -n "${format_diff}" ]; then
echo 'body=```diff' > 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
+ cat format-diff.log >> format.log
echo '```' >> format.log
[ -n "$CI_MERGE_REQUEST_IID" ] && curl \
--request POST \
--header "Private-Token: $STYLE_CHECK_TOKEN" \
- -d "$(<format.log)" \
+ --data-raw "$(<format.log)" \
https://gitlab.gnome.org/api/v4/projects/$CI_PROJECT_ID/merge_requests/$CI_MERGE_REQUEST_IID/notes \
--insecure
unlink format.log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]