Script for make request to the gitlab API
npm install -g gitlab-api-request
After install the library just type gr -h
in a terminal and see the documentation.
Output the version number
Gitlab personal token
Logs level error (only show errors)
, info (show errors and info logs)
, log (show any log)
(default: "error")
Api version (default: "v4")
Gitlab url (default: "https://gitlab.com")
Output usage information
Action over gr global configurations.
Set a configuration parameter in global configurations
gr config set "token"="MY_TOKEN"
Get a configuration parameter value from global configurations
gr config get token
Unset a configuration parameter from global configurations
gr config unset token
Allow actions over gitlab issues api
List of issues. In the example are filter by milestone
:
gr --token <user-token> issues list "milestone"="2019-02"
Estimation and spend time of the filter issues. In the example the issues are filter by milestone
:
gr --token <user-token> issues my-estimations "milestone"="2019-02"
result:
Estimate 48.5
Spent 0
Issues 17
npm test
For generate the coverage you can use the next script:
npm run test:cov
npm run lint
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Guillermo González - Initial work - wil92