From 80c0055e38b9c79b27a2c3b7da3b62e8d0f5e435 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 9 Dec 2024 12:10:51 +0100 Subject: [PATCH] tools: use commit title as PR title when creating release proposal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/56165 Reviewed-By: Michaël Zasso Reviewed-By: Marco Ippolito Reviewed-By: Rafael Gonzaga Reviewed-By: Juan José Arboleda --- tools/actions/create-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/actions/create-release.sh b/tools/actions/create-release.sh index 17878ff2e40d86..1392c4dd458476 100755 --- a/tools/actions/create-release.sh +++ b/tools/actions/create-release.sh @@ -29,7 +29,7 @@ git node release --prepare --skipBranchDiff --yes --releaseDate "$RELEASE_DATE" HEAD_BRANCH="$(git rev-parse --abbrev-ref HEAD)" HEAD_SHA="$(git rev-parse HEAD^)" -TITLE=$(awk "/^## ${RELEASE_DATE}/ { print substr(\$0, 4) }" "doc/changelogs/CHANGELOG_V${RELEASE_LINE}.md") +TITLE="$(git log -1 --format=%s)" # Use a temporary file for the PR body TEMP_BODY="$(awk "/## ${RELEASE_DATE}/,/^