Skip to content

Commit b4735cf

Browse files
committed
AutoPR able to combine title of multiple commits
1 parent 0135b4e commit b4735cf

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ jobs:
5757
set -x
5858
git checkout ${{steps.branch_info.outputs.NEXT_BRANCH}}
5959
git checkout -b ${{steps.create_branch.outputs.PRBRANCH}}
60-
TITLE=$(git log --format="| %s" ${{ github.event.commits[0].id }}~..${{ github.event.after }} | xargs -0)
61-
echo "TITLE=$TITLE" >> $GITHUB_OUTPUT
62-
echo "MESSAGE<<__EOF" >> $GITHUB_OUTPUT
60+
echo "TITLE<<__AUTOPR_EOF"
61+
git log --format="| %s" ${{ github.event.commits[0].id }}~..${{ github.event.after }} | tr '\n' ' ' >> $GITHUB_OUTPUT
62+
echo "__AUTOPR_EOF" >> $GITHUB_OUTPUT
63+
echo "MESSAGE<<__AUTOPR_EOF" >> $GITHUB_OUTPUT
6364
git log --format="> %B" ${{ github.event.commits[0].id }}~..${{ github.event.after }} >> $GITHUB_OUTPUT
64-
echo "__EOF" >> $GITHUB_OUTPUT
65+
echo "__AUTOPR_EOF" >> $GITHUB_OUTPUT
6566
cat $GITHUB_OUTPUT
6667
REVS=$(git rev-list --reverse ${{ github.event.commits[0].id }}~..${{ github.event.after }} )
6768
for rev in "$REVS"; do

0 commit comments

Comments
 (0)