From d40c86626a3c2d10eaa647f0e4664b32ef9060a5 Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Thu, 18 Jun 2026 21:28:56 -0400 Subject: [PATCH] fix(justfile): suppress grep exit code in release changelog formatter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `format_log` function parses PR numbers from commit subjects via a `grep -oE` pipeline. Commits without a PR suffix (e.g. "Update README.md") cause `grep` to exit 1, which `set -euo pipefail` promotes to a script failure — even though the empty-match case is already handled. --- Justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 7e16de5eb2..94c3dca6ad 100644 --- a/Justfile +++ b/Justfile @@ -540,7 +540,7 @@ release *ARGS: local range="$1" git log "$range" --format="%h %H %s" --no-merges | while IFS=' ' read -r short full rest; do local pr subject - pr=$(printf '%s' "$rest" | grep -oE '\(#[0-9]+\)$' | grep -oE '[0-9]+') + pr=$(printf '%s' "$rest" | grep -oE '\(#[0-9]+\)$' | grep -oE '[0-9]+' || true) if [[ -n "$pr" ]]; then subject=$(printf '%s' "$rest" | sed -E 's/ \(#[0-9]+\)$//') printf -- '- %s ([#%s](https://github.com/%s/pull/%s)) ([`%s`](https://github.com/%s/commit/%s))\n' \