gitlab-swagger-client-auth
Installation
npm install gitlab-swagger-client gitlab-swagger-client-auth -S
Configuration
// $HOME/.gitlab-swagger-client-authrc
The config file is loaded using rc, so config is merged from the following JSON/INI files (if they exist, in order of precedence):
- Environment variables (e.g.,
$gitlab_swagger_client_auth_gitlab__baseUrl
) - A
.gitlab-swagger-client-authrc
in the current directory (or the first found by navigating up the CWD path) $HOME/.gitlab-swagger-client-authrc
$HOME/.gitlab-swagger-client-auth/config
$HOME/.config/gitlab-swagger-client-auth
$HOME/.config/gitlab-swagger-client-auth/config
/etc/gitlab-swagger-client-authrc
/etc/gitlab-swagger-client-auth/config
Usage
;; const groupsApi = ;
Development
Integration tests
To run the integration tests, you will need to provide an access token for the gitlab.com
API (obtained via the Web API). Run the following command to set the token in your NPM config:
npm config set gitlab-swagger-client-auth:gitlab-token TOKEN
Note, this is only used to make read requests against the gitlab-org
group and doesn't access/modify any of your own data.