Skip to content

Commit 8a07a27

Browse files
committed
Fix AutoPR dealing with PR title/body contain quota like ` ' "
1 parent 6556094 commit 8a07a27

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/auto-pr-precise.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
echo "MESSAGE<<__EOF" >> $GITHUB_OUTPUT
6363
git log --format="> %B" ${{ github.event.commits[0].id }}~..${{ github.event.after }} >> $GITHUB_OUTPUT
6464
echo "__EOF" >> $GITHUB_OUTPUT
65+
cat $GITHUB_OUTPUT
6566
REVS=$(git rev-list --reverse ${{ github.event.commits[0].id }}~..${{ github.event.after }} )
6667
for rev in "$REVS"; do
6768
if ! git cherry-pick ${rev} ; then
@@ -79,9 +80,9 @@ jobs:
7980
script: |
8081
await github.rest.pulls.create({
8182
...context.repo,
82-
title: `[Pick][${{steps.branch_info.outputs.CURRENT_VERSION}} to ${{steps.branch_info.outputs.NEXT_VERSION}}] ${{steps.merge-changes.outputs.TITLE}}`,
83+
title: `[Pick][${{steps.branch_info.outputs.CURRENT_VERSION}} to ${{steps.branch_info.outputs.NEXT_VERSION}}] ` + steps.merge-changes.outputs.TITLE,
8384
head: `${{steps.create_branch.outputs.PRBRANCH}}`,
8485
base: `${{steps.branch_info.outputs.NEXT_BRANCH}}`,
85-
body: `${{steps.merge-changes.outputs.MESSAGE}}\nGenerated by Auto PR, by cherry-pick related commits`,
86+
body: eps.merge-changes.outputs.MES + `\nGenerated by Auto PR, by cherry-pick related commits`,
8687
});
8788

0 commit comments

Comments
 (0)