0.0.4 • Published 4 years ago

@siberianmh/gitlab-api v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

GitLab API

🚦 This project implements API endpoints what are we would to use itself, if you need other API endpoints, feel free to contribute or open issue

Installing

yarn add @siberianmh/gitlab-api
# or
npm install @siberianmh/gitlab-api

Usage

import { GitLab } from '@siberianmh/gitlab-api'

const gitlab = new GitLab({
  hostname: 'https://gitlab.example.com',
  token: 'XXXXX',
})

async function main() {
  const { data } = await gitlab.mergeRequest.getMergeRequest({
    project_id: 1,
    merge_request_iid: 1,
  })

  console.log(data)
}

main().catch((err) => {
  console.log(err)
  process.exit(1)
})

License

MIT

0.0.4

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago