From ac60ba59544a953c4fbdecdf0a8444fbedd8cdb8 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 10 Jan 2025 20:58:50 +0000 Subject: [PATCH] DEV: Update dependabot commit-message splitting (#30721) Followup to c6da8e335637cd7be3f258a311509469e452c2ee --- .github/workflows/check-pr-body.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-pr-body.yml b/.github/workflows/check-pr-body.yml index d434adeb42a..cc33fba8f6f 100644 --- a/.github/workflows/check-pr-body.yml +++ b/.github/workflows/check-pr-body.yml @@ -32,7 +32,7 @@ jobs: commit_message = `git log -1 --pretty=%b` raise "Failed to get commit message" unless $?.success? - new_description = commit_message.split("---").first.strip + new_description = commit_message.split("\n---\n").first.strip puts "Updating body to commit message...\n\n---\n#{new_description}\n---"