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