diff --git a/dist/index.js b/dist/index.js index 26eb3b6..7b96223 100644 --- a/dist/index.js +++ b/dist/index.js @@ -46441,12 +46441,9 @@ async function main() { githubClient.addInstructionTextReply(INSTRUCTIONS_TEXT, github.context.payload.discussion.node_id, github.context.payload.comment.node_id); } else { - core.info('Comment created without proposed answer keyword. No action needed'); + await processDiscussions(githubClient); } } - else { - await processDiscussions(githubClient); - } } async function processDiscussions(githubClient) { const discussionCategoryIDList = await githubClient.getAnswerableDiscussionCategoryIDs(); @@ -46557,7 +46554,7 @@ function closeAndMarkAsAnswered(comment, discussionId, githubClient) { githubClient.closeDiscussionAsResolved(discussionId); } main(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esc0NBQXNDO0FBQ3RDLDBDQUEwQztBQUMxQyxxRUFBa0U7QUFDbEUsaUNBQXVLO0FBR3ZLLE1BQU0sU0FBUyxHQUFHLFFBQVEsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLFdBQVcsRUFBRSxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDO0FBQ2xGLE1BQU0sVUFBVSxHQUFHLElBQUksQ0FBQyxRQUFRLENBQUMsWUFBWSxFQUFFLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFBQyxDQUFDLElBQUksZ0JBQWdCLENBQUM7QUFDdkYsTUFBTSxnQkFBZ0IsR0FBRyxVQUFVLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxrQkFBa0IsRUFBRSxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQ2pHLE1BQU0sdUJBQXVCLEdBQUcsSUFBSSxDQUFD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NFX0ZPUl9TVEFMRU5FU1NfUkVTUE9OU0VfVEVYVCk7XG4gIGdpdGh1YkNsaWVudC5jbG9zZURpc2N1c3Npb25Bc091dGRhdGVkKGRpc2N1c3Npb25JZCk7XG59XG5cbmZ1bmN0aW9uIGNsb3NlQW5kTWFya0FzQW5zd2VyZWQoY29tbWVudDogRGlzY3Vzc2lvbkNvbW1lbnRFZGdlLCBkaXNjdXNzaW9uSWQ6IHN0cmluZywgZ2l0aHViQ2xpZW50OiBHaXRodWJEaXNjdXNzaW9uQ2xpZW50KSB7XG4gIGNvbnN0IGJvZHlUZXh0ID0gY29tbWVudD8ubm9kZT8uYm9keVRleHQhO1xuICBjb25zdCBjb21tZW50SWQgPSBjb21tZW50Py5ub2RlPy5pZCE7XG4gIGNvbnN0IHVwZGF0ZWRBbnN3ZXJUZXh0ID0gYm9keVRleHQucmVwbGFjZShQUk9QT1NFRF9BTlNXRVJfS0VZV09SRCwgJ0Fuc3dlcjogJyk7XG4gIGdpdGh1YkNsaWVudC51cGRhdGVEaXNjdXNzaW9uQ29tbWVudChjb21tZW50SWQsIHVwZGF0ZWRBbnN3ZXJUZXh0KTtcbiAgZ2l0aHViQ2xpZW50Lm1hcmtEaXNjdXNzaW9uQ29tbWVudEFzQW5zd2VyKGNvbW1lbnRJZCk7XG4gIGdpdGh1YkNsaWVudC5jbG9zZURpc2N1c3Npb25Bc1Jlc29sdmVkKGRpc2N1c3Npb25JZCk7XG59XG5cbm1haW4oKTtcbiJdfQ== })(); module.exports = __webpack_exports__; diff --git a/src/index.ts b/src/index.ts index f8cff4e..69ca192 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,10 +31,8 @@ async function main() { core.info('Comment created with proposed answer keyword. Adding instuctions reply to comment'); githubClient.addInstructionTextReply(INSTRUCTIONS_TEXT, github.context.payload.discussion!.node_id, github.context.payload.comment!.node_id); } else { - core.info('Comment created without proposed answer keyword. No action needed'); - } - } else { await processDiscussions(githubClient); + } } }