Renamed getLabels

This commit is contained in:
Pol.Alvarez@BSC 2018-01-22 22:47:46 +01:00
commit 4b8524b0e7
1 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
const https = require('https');
const config = require('../config');
// Returns the url for getting the labels of a request (Github v3)
// Returns the url for getting the labels of a request (Github API v3)
// req has req.issue.labels_url
const getLabelsURL = function(req) {
let url = req.body.issue.labels_url;
@ -11,7 +11,12 @@ 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',