Skip to content

Commit 4c4273a

Browse files
authored
Fix autopr title (#45) (#46)
1 parent 85bec2b commit 4c4273a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,17 @@ jobs:
5757
set -x
5858
git checkout ${{steps.branch_info.outputs.NEXT_BRANCH}}
5959
git checkout -b ${{steps.create_branch.outputs.PRBRANCH}}
60+
<<<<<<< HEAD
6061
TITLE=$(git log --format="| %s" ${{ github.event.commits[0].id }}~..${{ github.event.after }} | xargs -0)
6162
echo "TITLE=$TITLE" >> $GITHUB_OUTPUT
6263
echo "MESSAGE<<__EOF" >> $GITHUB_OUTPUT
64+
=======
65+
echo "TITLE<<__AUTOPR_EOF" >> $GITHUB_OUTPUT
66+
git log --format="| %s" ${{ github.event.commits[0].id }}~..${{ github.event.after }} | tr '\n' ' ' >> $GITHUB_OUTPUT
67+
echo "" >> $GITHUB_OUTPUT
68+
echo "__AUTOPR_EOF" >> $GITHUB_OUTPUT
69+
echo "MESSAGE<<__AUTOPR_EOF" >> $GITHUB_OUTPUT
70+
>>>>>>> 9178494 (Fix autopr title (#45))
6371
git log --format="> %B" ${{ github.event.commits[0].id }}~..${{ github.event.after }} >> $GITHUB_OUTPUT
6472
echo "__EOF" >> $GITHUB_OUTPUT
6573
REVS=$(git rev-list --reverse ${{ github.event.commits[0].id }}~..${{ github.event.after }} )

0 commit comments

Comments
 (0)