From 089a848db61d1ad43e43a4103f75492fba3517a6 Mon Sep 17 00:00:00 2001 From: Lewis Christie Date: Thu, 10 Apr 2025 14:06:08 -0600 Subject: [PATCH 1/2] Update init.sh --- scripts/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/init.sh b/scripts/init.sh index 5d8ca42..b170a93 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -159,7 +159,7 @@ fi echo "done." # Make the token available to other sections in the rest of the current job -export PIPELINES_GRUNTWORK_READ_TOKEN +export PIPELINES_GRUNTWORK_READ_TOKEN="$PIPELINES_GRUNTWORK_READ_TOKEN" echo "PIPELINES_GRUNTWORK_READ_TOKEN=$PIPELINES_GRUNTWORK_READ_TOKEN" >>"$GITLAB_ENV" echo "PIPELINES_GRUNTWORK_READ_TOKEN=$PIPELINES_GRUNTWORK_READ_TOKEN" >>build.env From 86bef0821bbd520b8bb4b724e613232551d848f0 Mon Sep 17 00:00:00 2001 From: Lewis Christie Date: Thu, 17 Jul 2025 09:05:20 -0600 Subject: [PATCH 2/2] Dump notes (debugging) --- scripts/init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/init.sh b/scripts/init.sh index b170a93..79dbd69 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -52,7 +52,8 @@ set +x merge_request_notes="[]" if [[ -n "$merge_request_id" ]]; then echo -n "Fetching existing merge request notes... " - merge_request_notes="$(glab api "projects/$CI_PROJECT_ID/merge_requests/$merge_request_id/notes" --paginate 2>/dev/null)" + merge_request_notes="$(glab api "projects/$CI_PROJECT_ID/merge_requests/$merge_request_id/notes" --paginate)" + echo "$merge_request_notes" echo "done." fi # Turn command tracing back on if needed