From: Sasha Levin Date: Sun, 9 Mar 2025 14:34:04 +0000 (-0400) Subject: mailbot: correct handling of missing commit X-Git-Tag: v5.4.291~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6dbb7705fd108c7e722cc0e6d8228b13e0b7a920;p=thirdparty%2Fkernel%2Fstable-queue.git mailbot: correct handling of missing commit Signed-off-by: Sasha Levin --- 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")