From bf6f8134922cc2b59324e78b411479fca1147d80 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Thu, 12 Jun 2025 04:48:15 +0100 Subject: [PATCH] dev-cmd/bump-formula-pr: handle null body --- Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 8c417a4f63..a68aa0829e 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -399,7 +399,7 @@ module Homebrew nil end - if github_release_data.present? + if github_release_data.present? && github_release_data["body"].present? pre = "pre" if github_release_data["prerelease"].present? # maximum length of PR body is 65,536 characters so let's truncate release notes to half of that. body = Formatter.truncate(github_release_data["body"], max: 32_768)