Support for GitLab
Add supprt for GitLab to CCMenu.
[X] Feed reader [ ] UI to add pipelines [ ] Authentication [ ] GitLab on-prem support?
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"
}
]
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" ?
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.