guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ANN] Guile-GitLab 0.1.0


From: Artyom V. Poptsov
Subject: [ANN] Guile-GitLab 0.1.0
Date: Sat, 13 Nov 2021 19:40:04 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello Guilers,

I'm pleased to announce Guile-GitLab 0.1.0 -- the first version of a
GitLab REST API[1] client for GNU Guile:
  https://github.com/artyom-poptsov/guile-gitlab/releases/tag/v0.1.0

This project is in the early stages of development and provides limited
API for Guile programs that allows to fetch GitLab users, projects and
groups.  It addition it allows to delete GitLab users by IDs.

To provide some background why I started this project: I maintain a
GitLab instance in a local college and recently I found myself in need
of regexp-searching users by their emails.  Unfortunately GitLab
Community Edition does not provide such facility from the web UI.  So I
decided to write my own Guile library and a console tool to simplify the
task.

There's a small CLI tool called 'gitlab-cli' that is installed along
with the library to the system.  Here's an example of fetching users
that match the specified criteria:

--8<---------------cut here---------------start------------->8---
$ gitlab-cli user ls \
        --token "<your-gitlab-token>" \
        --server "https://gitlab.example.org"; \
        --email-not-like ".*changemeplease.*" \
        --print "id,username,email,name" \
        --format csv
--8<---------------cut here---------------end--------------->8---

Probably this tool can be useful for others too.

Thanks,

- Artyom

References:
1. https://docs.gitlab.com/ee/api/

-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]