From 465d6e9cca03321dc4006f99b062af4678f03d5a Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Wed, 29 Jan 2025 21:51:01 -0500 Subject: [PATCH 1/2] fix: do not show healthcheck alert for warnings --- lua/gitlab/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gitlab/health.lua b/lua/gitlab/health.lua index fbb87121..a4e2a065 100644 --- a/lua/gitlab/health.lua +++ b/lua/gitlab/health.lua @@ -139,7 +139,7 @@ M.check = function(return_results) end if return_results then - return #warnings + #errors == 0 + return #errors > 0 end end From c50c54451fa524950f46d472add34f63ade27749 Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Wed, 29 Jan 2025 21:53:12 -0500 Subject: [PATCH 2/2] Updated lua/gitlab/health.lua --- lua/gitlab/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gitlab/health.lua b/lua/gitlab/health.lua index a4e2a065..eca1bf58 100644 --- a/lua/gitlab/health.lua +++ b/lua/gitlab/health.lua @@ -139,7 +139,7 @@ M.check = function(return_results) end if return_results then - return #errors > 0 + return #errors == 0 end end