gitlab-js

0.1.3 • Public • Published

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.

/gitlab-js/

    Package Sidebar

    Install

    npm i gitlab-js

    Weekly Downloads

    3

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    25 kB

    Total Files

    24

    Last publish

    Collaborators

    • rumax