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

@@ -5,7 +5,7 @@ const octokit = require('@octokit/rest')(octokitConfig);
octokit.authenticate(octokitAuth);
const addComment = async (number, comment) => {
const addComment = async (number, comment, log) => {
const result = await octokit.issues.createComment({ owner, repo, number, body: comment })
.catch((err) => {
console.log(`PR #${number} had an error when trying to add a comment\n`);