diff --git a/lua/pipeline/providers/gitlab/graphql/health.lua b/lua/pipeline/providers/gitlab/graphql/health.lua index 34aec79..f4af527 100644 --- a/lua/pipeline/providers/gitlab/graphql/health.lua +++ b/lua/pipeline/providers/gitlab/graphql/health.lua @@ -5,7 +5,7 @@ function M.check() health.start('Gitlab GraphQL provider') - if vim.fn.executable('glab') then + if vim.fn.executable('glab') == 1 then health.ok('Found glab cli') else health.error('glab cli not found') diff --git a/lua/pipeline/providers/gitlab/graphql/init.lua b/lua/pipeline/providers/gitlab/graphql/init.lua index d08ddce..c8e5afe 100644 --- a/lua/pipeline/providers/gitlab/graphql/init.lua +++ b/lua/pipeline/providers/gitlab/graphql/init.lua @@ -26,6 +26,10 @@ function GitlabGraphQLProvider.detect() return false end + if vim.fn.executable('glab') == 0 then + return false + end + local config = require('pipeline.config') local server, repo = git().get_current_repository()