getLabel function renamed to getLabels

This commit is contained in:
Jordi Montes 2018-01-22 23:43:58 +01:00
parent 3ff0ae31cc
commit 36ce30c714

View File

@ -11,12 +11,8 @@ const getLabelsURL = function(req) {
return url.replace('{/name}', '');
}
<<<<<<< HEAD
const getLabel = function(req) {
=======
// Returns all labelNames of a given issue (Github API v3)
const getLabels = function(req) {
>>>>>>> 06d132a007e0008829bbf7e496836eec065c84bf
let url = getLabelsURL(req);
const options = {
hostname: 'api.github.com',
@ -51,5 +47,5 @@ const getLabels = function(req) {
}
module.exports = {
getLabel: getLabel
getLabels: getLabels
}