Skip to content

Commit ba2a61d

Browse files
committed
Try to print the PR description properly
1 parent 454b86e commit ba2a61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tools/config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function git_create_pr(){ # git_create_pr <branch> <title>
153153
local pr_title="$2"
154154
local pr_target="$3"
155155
local pr_body=""
156-
pr_body+="\`\`\`\r\n"$(cat "$AR_TOOLS/esp32-arduino-libs/versions.txt")"\r\n\`\`\`\r\n"
156+
while read -r line; do pr_body+=$line"\r\n"; done < versions.txt
157157
local pr_data="{\"title\": \"$pr_title\", \"body\": \"$pr_body\", \"head\": \"$AR_USER:$pr_branch\", \"base\": \"$pr_target\"}"
158158
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"`
159159
local done_pr=`echo "$git_create_pr_res" | jq -r '.title'`

0 commit comments

Comments
 (0)