1.0.6 • Published 2 years ago

@evidenceai/gitlab v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Gitlab API

This package enables creating new issues in the selected Gitlab instance. The following environment variables are required to be set in the environment:

GITLAB_TOKEN - A token with the permissions to create issues and use the API

GITLAB_HOST - Address of the Gitlab instance, for example gitlab.com

GITLAB_CR_PROJECT_ID - The ID of the project where issues should be created

Installing this package

yarn add  @evidenceai/gitlab

Using this package

The following will create a new issue in the project specified by GITLAB_CR_PROJECT_ID on GITLAB_HOST:

import {
  isGitlabIntegrationConfigured,
  submitContactRequest
} from "@evidenceai/gitlab";

if (!(await isGitlabIntegrationConfigured())) {
  throw new Error("Gitlab integration is not configured");
}

await submitContactRequest({
  email: "sample@email.com",
  message: "tagrr signup request",
  name: "customer name",
  questionnaireData: "this can be anything"
});

Bumping up version

npm version patch
npm publish

There is a gitlab job that automatically publishes from master branch or from tags (assuming you ran the npm version ... command to update package.json and add a tag).

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago