Skip to content

Commit

Permalink
xx,test=document_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swgu98 committed Dec 30, 2024
1 parent 702bbf5 commit 8bf98ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/CheckPRTemplate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
- name: Get commit message
id: get_commit_message
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
PR_BRANCH_SHA="${{ github.event.pull_request.head.sha }}"
git fetch origin $PR_BRANCH_SHA --depth=1
COMMIT_MESSAGE=$(git log -1 --format=%B $PR_BRANCH_SHA)
echo "commit_message=$COMMIT_MESSAGE" >> $GITHUB_ENV
- name: Do check
Expand All @@ -33,7 +35,7 @@ jobs:
AGILE_COMPILE_BRANCH: develop
AGILE_CHECKIN_AUTHOR: ${{ github.event.pull_request.user.login }}
AGILE_REVISION: ${{ github.event.pull_request.head.sha }}
AGILE_COMMENTS: "[{\"commit\": $AGILE_REVISION, \"author\": $AGILE_CHECKIN_AUTHOR, \"comment\": ${{ env.commit_message }}}]"
AGILE_COMMENTS: "[{\"commit\": ${{ github.event.pull_request.head.sha }}, \"author\": ${{ github.event.pull_request.user.login }}, \"comment\": ${{ env.commit_message }}}]"
icafe_url: ${{ secrets.icafe_url }}
icafe_user: ${{ secrets.icafe_user }}
icafe_pwd: ${{ secrets.icafe_pwd }}
Expand Down

0 comments on commit 8bf98ec

Please sign in to comment.