mirror of
https://github.com/status-im/autobounty.git
synced 2025-02-04 17:53:28 +00:00
getLabel function renamed to getLabels
This commit is contained in:
parent
3ff0ae31cc
commit
36ce30c714
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user