Renamed getLabels
This commit is contained in:
commit
4b8524b0e7
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue