Skip to content

Commit efe024d

Browse files
committed
Silence glab
1 parent b4fc6f0 commit efe024d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/init.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ collapse_older_pipelines_notes() {
8383
if [[ "$note_body" =~ "<details open>" ]]; then
8484
echo "Removing open directive from note body"
8585
collapsed_body=$(sed 's/<details open>/<details>/' <<<"$note_body")
86-
glab api "projects/$CI_PROJECT_ID/merge_requests/$merge_request_id/notes/$note_id" --method PUT --raw-field "body=$collapsed_body"
86+
glab api "projects/$CI_PROJECT_ID/merge_requests/$merge_request_id/notes/$note_id" --method PUT --raw-field "body=$collapsed_body" --silent
8787
fi
8888
fi
8989
done <<<"$notes_to_collapse"
@@ -98,9 +98,9 @@ $body"
9898
local -r existing_note_id=$(echo "$merge_request_notes" | jq -r --arg sticky_header "$sticky_header" '. | map(select(.body | startswith($sticky_header))) | .[].id')
9999

100100
if [[ -n "$existing_note_id" ]]; then
101-
glab api "projects/$CI_PROJECT_ID/merge_requests/$merge_request_id/notes/$existing_note_id" --method PUT --raw-field "body=$sticky_body"
101+
glab api "projects/$CI_PROJECT_ID/merge_requests/$merge_request_id/notes/$existing_note_id" --method PUT --raw-field "body=$sticky_body" --silent
102102
else
103-
glab api "projects/$CI_PROJECT_ID/merge_requests/$merge_request_id/notes" --raw-field "body=$sticky_body"
103+
glab api "projects/$CI_PROJECT_ID/merge_requests/$merge_request_id/notes" --raw-field "body=$sticky_body" --silent
104104
fi
105105
}
106106

0 commit comments

Comments
 (0)