https://github.com/rumax/gitlab-js
Gitlab JS interface
https://github.com/rumax/gitlab-js
Last synced: 3 months ago
JSON representation
Gitlab JS interface
- Host: GitHub
- URL: https://github.com/rumax/gitlab-js
- Owner: rumax
- Created: 2017-12-24T22:05:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T05:36:35.000Z (about 8 years ago)
- Last Synced: 2026-01-01T16:32:44.546Z (6 months ago)
- Language: JavaScript
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Gitlab JS interface
[](https://circleci.com/gh/rumax/gitlab-js)
[](https://codecov.io/gh/rumax/gitlab-js)
[](https://badge.fury.io/js/gitlab-js)
JS implementation for [gitlab API](https://docs.gitlab.com/ee/api/README.html).
Current implementation includes basic functionality, including:
- [Issues](https://docs.gitlab.com/ee/api/issues.html)
- [Get all projects](https://docs.gitlab.com/ee/api/projects.html#list-all-projects)
- [List user projects ](https://docs.gitlab.com/ee/api/projects.html#list-user-projects)
- [List project merge requests](https://docs.gitlab.com/ee/api/merge_requests.html#list-project-merge-requests)
- [Get single MR](https://docs.gitlab.com/ee/api/merge_requests.html#get-single-mr)
- [Comments on merge requests](https://docs.gitlab.com/ee/api/merge_requests.html#comments-on-merge-requests)
#### TODO:
- Other gitlab api
- Implementation for web
### JavaScript implementation
```
const gitlab = require('gitlab-js');
const projectId = 1;
const getIssues = async (title) => {
const issues = await issues.list(projectId, { search: title });
if (issues.length > 0) {
console.log('Issues found', issues);
}
}
getIssues();
```
### Node cli implementation:
- `./cli.js` to get help and list of supported commands
- `./cli.js project all` to get all projects
- `./cli.js mergeRequest list $projectId` to list project merge requests
- etc.