gitlab-create-issue
v1.0.1
Published
Create issues in gitlab
Downloads
9
Readme
gitlab-create-issue
Creates gitlab issues with the given payload
Why gitlab-create-issue?
The gitlab API requires the project ID to be given as payload to create an issue. This module finds the project ID from the project and namespace.
Install
npm install --save gitlab-create-issue
Payload
Usage
var createIssue = require('gitlab-create-issue')
var mandatoryPayload =
{
namespace: 'argonlaser',
project: 'gitlab-create-issue-test',
privateToken: process.env.privateToken,
title: 'Title'
}
var optionalPayload =
{
assigneeName: 'argonlaser',
dueDate: '2018-11-11'
}
createIssue(mandatoryPayload, optionalPayload, function (err, res) {
if (err) {
// Handle error
} else {
// Do something with response
}
}