Socket
Socket
Sign inDemoInstall

@evidenceai/gitlab

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @evidenceai/gitlab

A package to manipulate Gitlab API


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
9.98 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 27 Jul 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc