JS implementation for gitlab API.
Current implementation includes basic functionality, including:
- Issues
- Get all projects
- List user projects
- List project merge requests
- Get single MR
- Comments on merge requests
- Other gitlab api
- Implementation for web
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();
./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.