From 3eed93adfa131ad14edc43e4ccbeb257879da87b Mon Sep 17 00:00:00 2001 From: Coldwings Date: Tue, 12 Aug 2025 15:16:19 +0800 Subject: [PATCH] Fix autopr title (#45) --- .github/workflows/auto-pr-precise.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/auto-pr-precise.yml b/.github/workflows/auto-pr-precise.yml index f590dcaf..508d492f 100644 --- a/.github/workflows/auto-pr-precise.yml +++ b/.github/workflows/auto-pr-precise.yml @@ -57,9 +57,17 @@ jobs: set -x git checkout ${{steps.branch_info.outputs.NEXT_BRANCH}} git checkout -b ${{steps.create_branch.outputs.PRBRANCH}} +<<<<<<< HEAD TITLE=$(git log --format="| %s" ${{ github.event.commits[0].id }}~..${{ github.event.after }} | xargs -0) echo "TITLE=$TITLE" >> $GITHUB_OUTPUT echo "MESSAGE<<__EOF" >> $GITHUB_OUTPUT +======= + echo "TITLE<<__AUTOPR_EOF" >> $GITHUB_OUTPUT + git log --format="| %s" ${{ github.event.commits[0].id }}~..${{ github.event.after }} | tr '\n' ' ' >> $GITHUB_OUTPUT + echo "" >> $GITHUB_OUTPUT + echo "__AUTOPR_EOF" >> $GITHUB_OUTPUT + echo "MESSAGE<<__AUTOPR_EOF" >> $GITHUB_OUTPUT +>>>>>>> 9178494 (Fix autopr title (#45)) git log --format="> %B" ${{ github.event.commits[0].id }}~..${{ github.event.after }} >> $GITHUB_OUTPUT echo "__EOF" >> $GITHUB_OUTPUT REVS=$(git rev-list --reverse ${{ github.event.commits[0].id }}~..${{ github.event.after }} )