Update wiki page from CI

Hey there,

I would like to be able to update the wiki page, based on a folder that I have in my main repository, as you can do in this github action:

From my research this feature is not available, from what I could see in this old issues:

If it’s already available and I’m being really dumb, can anyone tell me how? :sweat_smile:

(Thanks any help)

It looks like project wiki and group wiki access were added to the API recently, so you might be able to use that.

1 Like

Thanks for the answer :slight_smile:

Is there no example/tutorial on how to do this? (I get kind of lost in the gitlab documentation) :sweat_smile:

There’s a getting started guide here. However, for many of my more complicated scripts, I use python-gitlab. I think you can find wrappers for most languages.

1 Like

Oh ok ok, thanks :grin:

I really liked the idea of using the python-gitlab package. I struggle with the access from within the CI/CD job. Following the documentation:

import gitlab
import os

gl = gitlab.Gitlab('https://gitlab.example.com', job_token=os.environ['CI_JOB_TOKEN'])

I created the Gitlab object. I analyzed the members of the object and came to the conclusion that I need the project-manager for accessing the project, which allows me to access the wiki. The issue the project-manager does not list a single project.

What am I missing I struggle at the first point by retrieving the project object.