gj
gitlab-js
npm i gitlab-js
gj

gitlab-js

Gitlab JS interface

by Maksym Rusynyk

0.1.3 (see all)License:MITTypeScript:Not FoundCategories:Vanilla JavaScript GitLab API
npm i gitlab-js
Readme

Gitlab JS interface

CircleCI codecov npm version

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.