Skip to content

Commit

Permalink
Update cmd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Jul 23, 2024
1 parent 50f4944 commit a22fcd1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ jobs:
for (let comment of comments.data) {
console.log(comment)
if (
(comment.body.startsWith('Command') && comment.user.type === 'Bot') ||
(comment.body.startsWith('/cmd') && comment.user.login === context.actor)
${{ github.event.comment.id }} !== comment.id &&
(
(comment.body.startsWith('Command') && comment.user.type === 'Bot') ||
(comment.body.startsWith('/cmd') && comment.user.login === context.actor)
)
) {
github.rest.issues.deleteComment({
comment_id: comment.id,
Expand Down

0 comments on commit a22fcd1

Please sign in to comment.