]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
mailbot: correct handling of missing commit
authorSasha Levin <sashal@kernel.org>
Sun, 9 Mar 2025 14:34:04 +0000 (10:34 -0400)
committerSasha Levin <sashal@kernel.org>
Sun, 9 Mar 2025 19:35:57 +0000 (15:35 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/mailbot.sh

index d848780ff2f2b5a76702fd69b1dbedb34d16a673..917dc6ea9d293e49d2a6bb58be040325241c769a 100755 (executable)
@@ -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")