From 5df7da3fa2907c08d49b77436cf32b4ae5c66e10 Mon Sep 17 00:00:00 2001 From: Jordi Montes Date: Mon, 22 Jan 2018 17:23:35 +0100 Subject: [PATCH] getLabels description --- bot/github.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/github.js b/bot/github.js index 2a74382..4adb6da 100644 --- a/bot/github.js +++ b/bot/github.js @@ -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.issue.labels_url; @@ -11,6 +11,7 @@ const getLabelsURL = function(req) { return url.replace('{/name}', ''); } +// Returns all labelNames of a given issue (Github API v3) const getLabels = function(req) { let url = getLabelsURL(req); return new Promise((resolve, reject) => {