-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request review after PR author comments #10544
Request review after PR author comments #10544
Conversation
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR hasn't generated any diffs, but I'll let you know if a future commit does. |
|
||
jobs: | ||
request-review: | ||
if: github.event.pull_request.draft == false | ||
if: github.event.pull_request && github.event.pull_request.draft == false && (github.event.sender.login == github.event.pull_request.user.login || github.event.action != 'created') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious did we not need the null check github.event.pull_request &&
before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theoretically, this workflow would trigger for comments on issues (in which case github.event.issue
would be populated instead). But issues are disabled on this repo so it shouldn't ever happen. But I figure it doesn't hurt to be explicit?
(Previously this wasn't a question because pull_request_target only triggers for pull requests.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, yep it doesn't hurt. Thanks for the explanation
go/terraform-pr-review-reminders
Note that this also makes it so that we request reviews for all PRs, regardless of target branch. I think that's okay since we're no longer tying review requests to test runs.
Release Note Template for Downstream PRs (will be copied)