From 77e9a821e1aafd0c5a642981ac0787f1873f3137 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 20 Jan 2023 18:11:29 +0100 Subject: [PATCH] update_app_levels: Minor quirk in major/minor regression definition --- update_app_levels/update_app_levels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_app_levels/update_app_levels.py b/update_app_levels/update_app_levels.py index 809adb0..dae5c4a 100644 --- a/update_app_levels/update_app_levels.py +++ b/update_app_levels/update_app_levels.py @@ -50,7 +50,7 @@ for app, infos in catalog.items(): elif current_level is None or ci_level > current_level: comment["improvements"].append((app, current_level, ci_level)) elif ci_level < current_level: - if ci_level < 4 and current_level >= 4: + if ci_level <= 4 and current_level > 4: comment["major_regressions"].append((app, current_level, ci_level)) else: comment["minor_regressions"].append((app, current_level, ci_level))