File tree Expand file tree Collapse file tree 3 files changed +285
-49
lines changed Expand file tree Collapse file tree 3 files changed +285
-49
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ PR_URL="https://github.com/ossrs/ffmpeg-webrtc/pull/$PR_NUMBER"
27
27
echo " Fetching PR #$PR_NUMBER from $PR_URL "
28
28
29
29
PR_DATA=$( curl -s " https://api.github.com/repos/ossrs/ffmpeg-webrtc/pulls/$PR_NUMBER " )
30
- REPO_NAME=$( echo " $PR_DATA " | jq -r ' .head.repo.full_name' )
31
- BRANCH_NAME=$( echo " $PR_DATA " | jq -r ' .head.ref' )
30
+ REPO_NAME=$( printf ' %s ' " $PR_DATA " | jq -r ' .head.repo.full_name' )
31
+ BRANCH_NAME=$( printf ' %s ' " $PR_DATA " | jq -r ' .head.ref' )
32
32
if [[ -z " $REPO_NAME " || -z " $BRANCH_NAME " ]]; then
33
33
echo " Error: REPO_NAME or BRANCH_NAME is empty!"
34
34
exit 1
35
35
fi
36
36
echo " Repository: $REPO_NAME , Branch: $BRANCH_NAME "
37
37
38
- PR_TITLE=$( echo " $PR_DATA " | jq -r ' .title' )
39
- PR_DESCRIPTION=$( echo " $PR_DATA " | jq -r ' .body // ""' )
38
+ PR_TITLE=$( printf ' %s ' " $PR_DATA " | jq -r ' .title' )
39
+ PR_DESCRIPTION=$( printf ' %s ' " $PR_DATA " | jq -r ' .body // ""' )
40
40
if [[ -z " $PR_TITLE " ]]; then
41
41
echo " Error: PR title is empty!"
42
42
exit 1
You can’t perform that action at this time.
0 commit comments