ccmenu2 icon indicating copy to clipboard operation
ccmenu2 copied to clipboard

Support for GitLab

Open erikdoe opened this issue 6 months ago • 3 comments

Add supprt for GitLab to CCMenu.

[X] Feed reader [ ] UI to add pipelines [ ] Authentication [ ] GitLab on-prem support?

erikdoe avatar Jul 13 '25 15:07 erikdoe

Feed reader works (but needs tests and some refactoring).

If you want to test this as is, I've created a developer release: https://github.com/ccmenu/ccmenu2/releases/tag/v28.0d1

There's no UI to add a pipeline, but you can write a JSON file with the pipeline definition and use the import function. The file should look like this. Note that you have to use your project id, not a pipeline id. (There's a bit of confusion with the terminology on GitLab.)

[
  {
    "feedName" : "",
    "feedType" : "gitlab",
    "feedUrl" : "https://gitlab.com/api/v4/projects/66079563/pipelines",
    "name" : "quvyn | build-and-test"
  }
]

erikdoe avatar Jul 17 '25 09:07 erikdoe

I have tested it for my project and its showing the correct status of the last run pipeline. Tomorrow I can test it while a new pipeline is running.

Just a question, what is expected value of the key "feedName" ?

maneesh29s avatar Jul 17 '25 16:07 maneesh29s

The "feedName" field is not used for GitLab or GitHub (at least for now). It's only used for CCTray feeds, which have the status for multiple projects/pipelines in one feed.

erikdoe avatar Jul 17 '25 19:07 erikdoe