Skip to content

Commit

Permalink
fix name of the bot
Browse files Browse the repository at this point in the history
  • Loading branch information
damcou committed Jul 15, 2021
1 parent 57cfb85 commit c8e6b14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ function getRecordExtractorSource() {
return "({ helpers }) => {\n return helpers.netlifyExtractor({ template: 'default' });\n}";
}
function findCommentPredicate(crawlerId, comment) {
console.log(comment.user);
return ((comment.user ? comment.user.login === 'github-actions' : false) &&
return ((comment.user ? comment.user.login === 'github-actions[bot]' : false) &&
(comment.body ? comment.body.includes(crawlerId) : false));
}
function findComment(prNumber, crawlerId) {
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ function getRecordExtractorSource(): string {
}

function findCommentPredicate(crawlerId: string, comment: Comment): boolean {
console.log(comment.user);
return (
(comment.user ? comment.user.login === 'github-actions' : false) &&
(comment.user ? comment.user.login === 'github-actions[bot]' : false) &&
(comment.body ? comment.body.includes(crawlerId) : false)
);
}
Expand Down

0 comments on commit c8e6b14

Please sign in to comment.