Skip to content

Commit 82bc489

Browse files
committed
Improve PR body for specific hashes.
1 parent fe35bff commit 82bc489

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/backport.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ jobs:
236236
BODY="${BODY}\n\n## Changes\n"
237237
238238
if [ -n "${INPUTS_COMMIT_SHA}" ]; then
239-
BODY="${BODY}\n- Cherry-picked commit: \`${INPUTS_COMMIT_SHA}\`"
239+
COMMIT_MESSAGE=$(git log --format=%B -n 1 "${INPUTS_COMMIT_SHA}")
240+
BODY="${BODY}\n${COMMIT_MESSAGE}\nCherry-picked from \`${INPUTS_COMMIT_SHA}\`."
240241
fi
241242
242243
if [ -n "${INPUTS_PR_NUMBERS}" ] && [ -z "${INPUTS_COMMIT_SHA}" ]; then

0 commit comments

Comments
 (0)