mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: sync job pr description escaped values fix (#2366)
This commit is contained in:
parent
db1bcdb54f
commit
4017f6bc55
14
.github/workflows/create-sync-pr.yml
vendored
14
.github/workflows/create-sync-pr.yml
vendored
@ -59,9 +59,19 @@ jobs:
|
|||||||
PR_TITLE="${{ github.event.pull_request.title }}"
|
PR_TITLE="${{ github.event.pull_request.title }}"
|
||||||
PR_BODY="${{ github.event.pull_request.body }}"
|
PR_BODY="${{ github.event.pull_request.body }}"
|
||||||
|
|
||||||
|
# Remove double quotes
|
||||||
|
PR_TITLE_CLEANED="${PR_TITLE//\"/}"
|
||||||
|
PR_BODY_CLEANED="${PR_BODY//\"/}"
|
||||||
|
|
||||||
|
# Construct PR_BODY_CONTENT using a here-document
|
||||||
|
PR_BODY_CONTENT=$(cat <<EOF
|
||||||
|
$PR_BODY_CLEANED
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
gh pr create \
|
gh pr create \
|
||||||
--base $TARGET_BRANCH \
|
--base $TARGET_BRANCH \
|
||||||
--head $SOURCE_BRANCH \
|
--head $SOURCE_BRANCH \
|
||||||
--title $PR_TITLE \
|
--title "$PR_TITLE_CLEANED" \
|
||||||
--body $PR_BODY \
|
--body "$PR_BODY_CONTENT" \
|
||||||
--repo $TARGET_REPO
|
--repo $TARGET_REPO
|
||||||
|
Loading…
Reference in New Issue
Block a user