From 9265accae4b4575ff3200da55982bba153eb1f5b Mon Sep 17 00:00:00 2001 From: GalvinGao Date: Thu, 23 Nov 2023 01:37:59 -0800 Subject: [PATCH] build: update PR auto create --- .github/workflows/pr-auto-upsert.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-auto-upsert.yml b/.github/workflows/pr-auto-upsert.yml index 619a3089..d2448c56 100644 --- a/.github/workflows/pr-auto-upsert.yml +++ b/.github/workflows/pr-auto-upsert.yml @@ -33,8 +33,9 @@ jobs: # replace newlines with \n sed -i ':a;N;$!ba;s/\n/\\n/g' /tmp/commit_messages.txt - echo "commit_messages:" + echo "commit messages:\n" cat /tmp/commit_messages.txt + echo "\n" curl https://api.openai.com/v1/chat/completions \ -H "Content-Type: application/json" \ @@ -72,8 +73,9 @@ jobs: # replace " with \" sed -i 's/"/\\"/g' /tmp/summary.txt - echo "summary:" + echo "summary:\n" cat /tmp/summary.txt + echo "\n" echo "summary=$(cat /tmp/summary.txt)" >> $GITHUB_OUTPUT