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

1.0.6 • Public • Published

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).

Readme

Keywords

Package Sidebar

Install

npm i @evidenceai/gitlab

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

10.2 kB

Total Files

10

Last publish

Collaborators

  • pilvikala