Restore user type verification to bot comment

This commit is contained in:
Guy Zylberberg 2022-10-13 11:18:23 +03:00 committed by GitHub
parent 6b22709ed5
commit 2217686b99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,7 +207,7 @@ steps:
issue_number: context.issue.number,
})
const botComment = comments.find(comment => {
return comment.body.includes('Terraform Format and Style')
return comment.user.type === 'Bot' && comment.body.includes('Terraform Format and Style')
})
// 2. Prepare format of the comment