GitHub Actions triggers workflow with pull_request_review edited event even if not listening to it, when commenting #24980
|
As you can see, my workflow was triggered with a pull_request_review edited event after I submitted a pull_request_review with comments. The problem is that in my workflow file I’m listening only to created comments and submitted (not edited) reviews: |
Answered by
otter-computer
Feb 11, 2021
Replies: 2 comments
|
After I SUBMITTED a review with 2 comments and a body, my workflow triggered 4 times, instead of 3:
|
0 replies
|
I believe this is caused by a typo in your workflow file. It looks like you’ve used If you change both instances to I’m surprised the workflow editor doesn’t flag this as an error or at least show a warning though. I’ll pass this on to the editor team and see if there’s an open issue for it. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


I believe this is caused by a typo in your workflow file. It looks like you’ve used
typeinstead oftypesfor bothpull_request_reviewandpull_request_review_comment. This means that your workflow will listen to all default triggers for these events.If you change both instances to
typesthen it should only listen for the events specified in the array.I’m surprised the workflow editor doesn’t flag this as an error or at least show a warning though. I’ll pass this on to the editor team and see if there’s an open issue for it.