topaxi / pipeline.nvim

See status of ci/cd pipeline runs directly in neovim. Currently supports GitHub Actions and GitLab CI.
138 stars 5 forks source link

Gitlab: Nothing in the pipeline view #21

Open hinricht opened 21 hours ago

hinricht commented 21 hours ago

Hi, I try to use this plugin with gitlab.com, but I can't make it work. Could you please share a minimal config for gitlab ?

So far I have:

$ glab auth status  
gitlab.com
  ✓ Logged in to gitlab.com as … (/home/varac/.config/glab-cli/config.yml)
  ✓ Git operations for gitlab.com configured to use ssh protocol.
  ✓ API calls for gitlab.com are made over https protocol.
  ✓ REST API Endpoint: https://gitlab.com/api/v4/
  ✓ GraphQL Endpoint: https://gitlab.com/api/graphql/
  ! No token provided in configuration file.

! One of GITLAB_TOKEN, GITLAB_ACCESS_TOKEN, OAUTH_TOKEN environment variables is set. It will be used for all authentication.

My plugin config:

 {
    "topaxi/pipeline.nvim",
    keys = {
      { "<leader>ci", "<cmd>Pipeline<cr>", desc = "Open pipeline.nvim" },
    },
    -- optional, you can also install and use `yq` instead.
    -- build = "make",
    ---@type pipeline.Config
    --- https://github.com/topaxi/pipeline.nvim?tab=readme-ov-file#options
    opts = {
      browser = "xdg-open",
      allowed_hosts = {
        "gitlab.com",
      },
    },
  },

Thanks !

topaxi commented 20 hours ago

I haven't tried it on the public gitlab instance yet, only the one from my current employer. I will take a look later this evening or latest this weekend.

hinricht commented 19 hours ago

Thanks !