diff --git a/.github/workflows/traiage.yaml b/.github/workflows/traiage.yaml index 566cfc7841..2749e07a4f 100644 --- a/.github/workflows/traiage.yaml +++ b/.github/workflows/traiage.yaml @@ -189,7 +189,10 @@ jobs: TEMPLATE_PRESET: ${{ steps.determine-inputs.outputs.template_preset }} run: | # Fetch issue description using `gh` CLI - issue_description=$(gh issue view "${ISSUE_URL}") + #shellcheck disable=SC2016 # The template string should not be subject to shell expansion + issue_description=$(gh issue view "${ISSUE_URL}" \ + --json 'title,body,comments' \ + --template '{{printf "%s\n\n%s\n\nComments:\n" .title .body}}{{range $k, $v := .comments}} - {{index $v.author "login"}}: {{printf "%s\n" $v.body}}{{end}}') # Write a prompt to PROMPT_FILE PROMPT=$(cat <