feat: changed to module.exports
This commit is contained in:
committed by
mrugesh mohapatra
parent
76c23be416
commit
2ae521c995
@@ -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`);
|
||||
|
Reference in New Issue
Block a user