GitLab JSON API fetcher.
This project and C++ Requests both use CMake. The first step is to make sure all of the submodules are initialized:
$ git submodule update --init --recursive
Then make a build directory and do a CMake build from there:
$ mkdir build
$ cd build
$ cmake ..
$ make
You will need a GitLab API token (get here) and the project ID from /api/v4/projects?search=[name]&private_token=
. Create and populate the .env
file in the format of the .env.example
.
From build/
folder.
$ env $(cat ../.env | xargs) ./getstatus
Convenience build and run command (from root directory):
make -C build/ && env $(cat .env | xargs) ./build/getstatus