in index.js [544:551]
async function hasCommented(context, commentText) {
const comments = (await context.octokit.issues.listComments(context.issue())).data;
return comments.findIndex(comment =>
comment.user.type === 'Bot'
&& comment.body
&& comment.body.replace(/\r\n/g, '\n').includes(commentText)
) > -1;
}