From f82b050bca8d0198e181765fafdd99dab931c1e9 Mon Sep 17 00:00:00 2001 From: Rachel Powers <508861+Ryex@users.noreply.github.com> Date: Tue, 1 Apr 2025 23:33:17 -0700 Subject: [PATCH] Fix blocked pr comment body (#3570) * Add newline to seperate header from comment body Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Seth Flynn Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> --------- Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> Co-authored-by: Seth Flynn --- .github/workflows/blocked-prs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blocked-prs.yml b/.github/workflows/blocked-prs.yml index d32f53bb1..94ec81317 100644 --- a/.github/workflows/blocked-prs.yml +++ b/.github/workflows/blocked-prs.yml @@ -163,6 +163,7 @@ jobs: if: fromJSON(steps.pr_ids.outputs.prs).numBlocking > 0 continue-on-error: true env: + GH_TOKEN: ${{ steps.generate-token.outputs.token }} BLOCKING_ISSUES: ${{ steps.blocking_data.outputs.current_blocking }} run: | while read -r pr ; do @@ -202,7 +203,8 @@ jobs: BLOCKING_DATA: ${{ steps.blocking_data.outputs.data }} run: | COMMENT_PATH="$(pwd)/temp_comment_file.txt" - echo '

PR Dependencies :pushpin:

' > "$COMMENT_PATH" + echo '

PR Dependencies :pushpin:

' > "$COMMENT_PATH" + echo >> "$COMMENT_PATH" pr_head_label=$(jq -r '.prHeadLabel' <<< "$JOB_DATA") while read -r pr_data ; do base_pr=$(jq -r '.number' <<< "$pr_data")