From 6dbb7705fd108c7e722cc0e6d8228b13e0b7a920 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Sun, 9 Mar 2025 10:34:04 -0400 Subject: [PATCH] mailbot: correct handling of missing commit Signed-off-by: Sasha Levin --- scripts/mailbot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/mailbot.sh b/scripts/mailbot.sh index d848780ff2..917dc6ea9d 100755 --- a/scripts/mailbot.sh +++ b/scripts/mailbot.sh @@ -1021,12 +1021,13 @@ generate_response() { missing_count=$((missing_count + 1)) has_issues=1 summary+=("ℹ️ Patch is missing in ${branch_version}.y (ignore if backport was sent)") + # Commit is present, don't count as missing for branches where it's found fi fi fi done - # Only set missing_in_newer if ALL newer branches are missing the commit + # Only set missing_in_newer if ALL newer branches are missing the commit AND there are newer branches if [ $missing_count -gt 0 ] && [ $missing_count -eq $newer_count ] && [ $newer_count -gt 0 ]; then has_issues=1 summary+=("⚠️ Commit missing in all newer stable branches") -- 2.47.3