0.1.3 • Published 8 years ago
gitlab-js v0.1.3
Gitlab JS interface
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
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.jsto get help and list of supported commands./cli.js project allto get all projects./cli.js mergeRequest list $projectIdto list project merge requests- etc.