How to use the gitlab.Pipelines function in gitlab

To help you get started, we’ve selected a few gitlab examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reimagined / resolve / trigger-on-pull-request / index.js View on Github external
async function main({ gitlab, github, refreshTime }) {
  const PipelinesService = new Gitlab.Pipelines({
    token: gitlab.personalAccessToken
  })

  try {
    await cancelPipelines(PipelinesService)
  } catch (_) {
    try {
      await cancelPipelines(PipelinesService)
    } catch (error) {
      console.error(error)
    }
  }

  octokit.authenticate({
    type: 'token',
    token: github.token

gitlab

Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.

MIT
Latest version published 5 years ago

Package Health Score

65 / 100
Full package analysis