feat: changed to module.exports

This commit is contained in:
Randell Dawson
2018-11-11 23:52:00 -08:00
committed by mrugesh mohapatra
parent 76c23be416
commit 2ae521c995
14 changed files with 36 additions and 31 deletions

View File

@@ -8,7 +8,6 @@ octokit.authenticate(octokitAuth);
const addLabels = (number, labels, log) => {
octokit.issues.addLabels({ owner, repo, number, labels })
.then(() => {
log.update(number, true);
console.log(`PR #${number} added ${JSON.stringify(labels)}\n`);
})
.catch((err) => {
@@ -18,4 +17,4 @@ const addLabels = (number, labels, log) => {
})
};
exports.addLabels = addLabels;
module.exports = { addLabels };