diff --git a/dist/index.js b/dist/index.js index 2ba7131..fdbbfe9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -28,7 +28,6 @@ async function run() { if (image === "") { console.error("No image url found! Not posting a comment") } else { - console.log(`image url - ${image}`) postImageToPR(context, image) } } @@ -37,6 +36,7 @@ async function getAnimalImageUrl() { const animalInput = core.getInput('animal-type') const animalType = animalInput.toUpperCase() + console.log("Looking for animal " + animalType) if (animalType == animal.shiba) { return getShibaImage() } else if (animalType == animal.cat) { @@ -106,6 +106,8 @@ async function postImageToPR(context, picture) { const prNumber = context.payload.pull_request.number const commentBody = `![](${picture})` + console.log("Posting comment " + commentBody) + octokit.issues.createComment({ ...context.repo, issue_number: prNumber, diff --git a/index.js b/index.js index bf9130e..1ce31d9 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,6 @@ async function run() { if (image === "") { console.error("No image url found! Not posting a comment") } else { - console.log(`image url - ${image}`) postImageToPR(context, image) } } @@ -30,6 +29,7 @@ async function getAnimalImageUrl() { const animalInput = core.getInput('animal-type') const animalType = animalInput.toUpperCase() + console.log("Looking for animal " + animalType) if (animalType == animal.shiba) { return getShibaImage() } else if (animalType == animal.cat) { @@ -99,6 +99,8 @@ async function postImageToPR(context, picture) { const prNumber = context.payload.pull_request.number const commentBody = `![](${picture})` + console.log("Posting comment " + commentBody) + octokit.issues.createComment({ ...context.repo, issue_number: prNumber,