@siberianmh/gitlab-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @siberianmh/gitlab-api

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

238 kB

Total Files

69

Last publish

Collaborators

  • hashimoto