Skip to content
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

Conversation

melinath
Copy link
Member

@melinath melinath commented Apr 26, 2024

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)


@melinath melinath requested review from a team and c2thorn and removed request for a team April 26, 2024 21:37
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your 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')
Copy link
Member

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?

Copy link
Member Author

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.)

Copy link
Member

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

@melinath melinath merged commit 6004821 into GoogleCloudPlatform:main Apr 29, 2024
11 checks passed
@melinath melinath deleted the request-review-after-author-comment branch April 29, 2024 16:22
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request May 8, 2024
pawelJas pushed a commit to pawelJas/magic-modules that referenced this pull request May 16, 2024
pengq-google pushed a commit to pengq-google/magic-modules that referenced this pull request May 21, 2024
Cheriit pushed a commit to Cheriit/magic-modules that referenced this pull request Jun 4, 2024
pcostell pushed a commit to pcostell/magic-modules that referenced this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants