From ba2a61d487ab3e27f0d71be9e9a911c2c84aaec2 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Wed, 29 Nov 2023 17:05:03 +0200 Subject: [PATCH] Try to print the PR description properly --- tools/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/config.sh b/tools/config.sh index 44e0de1..4d164d2 100755 --- a/tools/config.sh +++ b/tools/config.sh @@ -153,7 +153,7 @@ function git_create_pr(){ # git_create_pr local pr_title="$2" local pr_target="$3" local pr_body="" - pr_body+="\`\`\`\r\n"$(cat "$AR_TOOLS/esp32-arduino-libs/versions.txt")"\r\n\`\`\`\r\n" + while read -r line; do pr_body+=$line"\r\n"; done < versions.txt local pr_data="{\"title\": \"$pr_title\", \"body\": \"$pr_body\", \"head\": \"$AR_USER:$pr_branch\", \"base\": \"$pr_target\"}" git_create_pr_res=`echo "$pr_data" | curl -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" --data @- "https://api.github.com/repos/$AR_REPO/pulls"` local done_pr=`echo "$git_create_pr_res" | jq -r '.title'`