¡ don’t look ! it’s ugly.
A work in progress.
There is no need to authenticate to query public projects.
Otherwise, you will need to manually set the *private-token*
(until
we implement a better way).
Create a token on your Gitlab profile: https://docs.gitlab.com/ce/user/profile/personal_access_tokens.html and then:
(setf gitlab:access-token "secret")
- Note taken on [2018-01-13 sam. 03:08]
room for improvement. It’s flexible right now.
You can give query parameters as an alist to any request with the
:params
keyword argument. For example:
(project-issues "user/project" :params '(("state" . "opened")))
With request method "path" :params (alist) :data
you can access all
the api.
(gitlab:request :GET "/projects")
The other functions are only helpers.
(gitlab:project "username/project")
(project-issues "user/project" :params '(("state" . "opened")))
See the api documentation for the possible parameters.
Inspired by glab.el.
It follows a minimalistic approach so you better read Gitlab’s API documentation: https://docs.gitlab.com/ce/api/ The goal is that if their API changes, our library doesn’t break.