1.0.0 • Published 6 years ago

ganjiang-gitlab v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Ganjiang-GitLab

Debug the output

set the DEBUG = gitlab:* by export DEBUG = gitlab:*, ganjiang will log out debug info

create gitlab client

  const GitLab = require('ganjiang-gitlab')
  const gitlab = new GitLab({
    host: '127.0.0.1', // gitlab host
    token: 'xxxxx', // access token
    version: 'v3',
  })

get projects

  const projects = await gitlab.getProjects()
  console.log(projects) // show the following data

Run Tests

  • set your access token in test folder utils.js, and run
npm test