Skip to content

Instantly share code, notes, and snippets.

@epcim
Created April 29, 2019 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epcim/2a1ac4539e26180eb34f6aa792e3d9f8 to your computer and use it in GitHub Desktop.
Save epcim/2a1ac4539e26180eb34f6aa792e3d9f8 to your computer and use it in GitHub Desktop.
gitlab issues

CLI tool for gitlab's API:

https://python-gitlab.readthedocs.io/en/stable/cli.html

pip3 install --user python-gitlab
$EDITOR ~/.python-gitlab.cfg 

Sample config for gitlab's main site, but you can add your own local instances too:

[global]
default = gitlab
ssl_verify = true
timeout = 5

[gitlab]
url = https://gitlab.com
private_token = <insert API token here>
api_version = 4

Use:

gitlab issue list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment