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 298817e commit e932de1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ jobs:
}).then(comments => {
for (let comment of comments.data) {
console.log(comment)
if (comment.body.startsWith('Command') && comment.user.login === 'github-actions[bot]') {
if (
(comment.body.startsWith('Command') && comment.user.login === 'github-actions[bot]')
|| (comment.body.startsWith('/cmd') && comment.user.login === context.actor)
) {
github.rest.issues.deleteComment({
comment_id: comment.id,
owner: context.repo.owner,
Expand Down

0 comments on commit e932de1

Please sign in to comment.