Skip to content

Commit

Permalink
Don't request reviews on closed pull_requests (GoogleCloudPlatform#12524
Browse files Browse the repository at this point in the history
)

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
  • Loading branch information
2 people authored and amanMahendroo committed Dec 17, 2024
1 parent 03a9ebb commit b5d2aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/request-reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
request-review:
if: (github.event.action == 'created' && github.event.issue.draft == false && github.event.comment.user.login == github.event.issue.user.login) || (github.event.action != 'created' && github.event.pull_request.draft == false)
if: (github.event.action == 'created' && github.event.issue.state == 'open' && github.event.issue.draft == false && github.event.comment.user.login == github.event.issue.user.login) || (github.event.action != 'created' && github.event.pull_request.state == 'open' && github.event.pull_request.draft == false )
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down

0 comments on commit b5d2aa3

Please sign in to comment.