gitlab-ce-api
A node module for connecting to and getting data from gitlab 8
Notes
- this is very much a work in progress. I will only be updating it as I need to.
- Token refers to
Access Tokens
. They can be generated from here:[gitlaburl]/profile/personal_access_tokens
- Requires GitLab CE version 8.13+
Install
npm install gitlab-ce-api --save
Init
var gitlabAPI = ; var options = token: "" baseURL: "" port: 80 timeout: 15000 https: true verbose: false; ;
Options
token
: The User to sign into the registry withbaseURL
: The URL for the registry. eg:hub.docker.com
port
: The Port Number to connect to. Default:80
timeout
: Timeout value in milliseconds. Default15000
https
: Use HTTPS to connect to the API. Defaulttrue
,verbose
: Log console actions taken (for debugging). Defaultfalse
each option has a get
and set
method in camel case (gitlabAPI(options).setVerbose(true)
).
Usage
List of Projects
;
Projects Details
var ProjectId = 123;;
Projects Repository File Tree
var ProjectId = 123;;
Project Repository File Details
var ProjectId = 123;;