Gitlab JS interface
JS implementation for gitlab API.
Current implementation includes basic functionality, including:
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.