Skip to content

Commit 242796e

Browse files
committed
Make list of plugins in the PR description a code block
Some characters in version strings cause issues with Github Markdown
1 parent e2f746c commit 242796e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/config.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ function git_create_pr(){ # git_create_pr <branch> <title>
152152
local pr_branch="$1"
153153
local pr_title="$2"
154154
local pr_target="$3"
155-
local pr_body=""
155+
local pr_body="\`\`\`\r\n"
156156
while read -r line; do pr_body+=$line"\r\n"; done < "$AR_TOOLS/esp32-arduino-libs/versions.txt"
157+
pr_body+="\`\`\`\r\n"
157158
local pr_data="{\"title\": \"$pr_title\", \"body\": \"$pr_body\", \"head\": \"$AR_USER:$pr_branch\", \"base\": \"$pr_target\"}"
158159
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"`
159160
local done_pr=`echo "$git_create_pr_res" | jq -r '.title'`

tools/repository_dispatch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ commit=`echo "$payload" | jq -r '.commit'`
1414
builder=`echo "$payload" | jq -r '.builder'`
1515
arduino=`echo "$payload" | jq -r '.arduino'`
1616

17-
echo "Action: $action, Branch: $branch, Tag: $tag, Commit: $commit, Builder: $builder, Arduino: $arduino, Actor: $GITHUB_ACTOR"
17+
echo "Action: $action, IDF Branch: $branch, IDF Tag: $tag, IDF Commit: $commit, Builder Branch: $builder, Arduino Branch: $arduino, Actor: $GITHUB_ACTOR"
1818

1919
if [ ! "$action" == "deploy" ] && [ ! "$action" == "build" ]; then
2020
echo "Bad Action $action"

0 commit comments

Comments
 (0)