You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.
If you have a CODEOWNERS file in place, as we do here, the action that GitHub assigns in the webhook payload is review_requested instead of opened. Therefore, mention bot skips the PR, even though it is a newly "opened" PR.
While adding review_requested to the check where the PR is skipped if the action != opened is the "easy" work-around, this event is also triggered when reviewers are requested and removed. Obviously, we wouldn't want mention bot commenting each time the review_requested event is triggered.
I need to keep looking through the event payload to see if there is a way around this, but I wanted to post here to see if anyone has worked around this before. How can we make mention-bot compatible with GitHub's CODEOWNERS file?
The text was updated successfully, but these errors were encountered:
If you have a CODEOWNERS file in place, as we do here, the
action
that GitHub assigns in the webhook payload isreview_requested
instead ofopened
. Therefore, mention bot skips the PR, even though it is a newly "opened" PR.While adding
review_requested
to the check where the PR is skipped if the action !=opened
is the "easy" work-around, this event is also triggered when reviewers are requested and removed. Obviously, we wouldn't want mention bot commenting each time thereview_requested
event is triggered.google/go-github#790
I need to keep looking through the event payload to see if there is a way around this, but I wanted to post here to see if anyone has worked around this before. How can we make mention-bot compatible with GitHub's CODEOWNERS file?
The text was updated successfully, but these errors were encountered: