From 70b95ebed088d4ae23ba98f02a3fc1d0545bb05f Mon Sep 17 00:00:00 2001 From: Feng Shuo Date: Wed, 10 Jun 2026 11:34:52 +0800 Subject: [PATCH] Minor tuning for the log message 2 --- .github/workflows/create-redfs-pr.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-redfs-pr.yml b/.github/workflows/create-redfs-pr.yml index 42eec73068da12..d66b04e25c4430 100644 --- a/.github/workflows/create-redfs-pr.yml +++ b/.github/workflows/create-redfs-pr.yml @@ -24,14 +24,17 @@ jobs: PR_TITLE: ${{ github.event.pull_request.title }} BASE_SHA: ${{ github.event.pull_request.base.sha }} HEAD_SHA: ${{ github.event.pull_request.head.sha }} + REPO_NAME: ${{ github.repository }} + BRANCH_NAME: ${{ github.ref_name }} run: | pushd linux - echo -e "Sync with ${{ github.repository }} branch ${{ github.ref_name }}\n" > ../commit.msg - echo -e "Sync with ${{ github.repository }} branch ${{ github.ref_name }} at commit" >> ../commit.msg - echo -e "${{ github.sha }}\n" >> ../commit.msg + echo -e "Sync with $REPO_NAME branch $BRANCH_NAME\n" > ../commit.msg + echo -e "Sync with $REPO_NAME branch $BRANCH_NAME PR $PR_NUMBER" >> ../commit.msg + echo -e "$PR_TITLE\n" >> ../commit.msg + echo -e "(commit: ${{ github.sha }})\n" >> ../commit.msg echo "Getting git log $BASE_SHA..$HEAD_SHA" RET=0 - git log --oneline $BASE_SHA..$HEAD_SHA >> ../commit.msg || RET=$? + git log --format="- %h %s" $BASE_SHA..$HEAD_SHA >> ../commit.msg || RET=$? if [ $RET -ne 0 ]; then echo "Failed to get git log with range, try to get log with single commit (too many commits?)." git log --format="- %s" $HEAD_SHA >> ../commit.msg || RET=$?