File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 8
8
types :
9
9
# Trigger the review when either of these events occur:
10
10
#
11
- # - a review is requested from any user
11
+ # - a pull request is opened and is not in draft state
12
+ # - a pull request is moved from draft to ready for review
12
13
# - the "sourcery-review" label is added to the pull request: add this label
13
14
# to your pull request to trigger a review. To re-request reviews, remove the
14
15
# label and add it again.
15
16
#
16
17
# Feel free to edit this list to suit your team's needs. See the list of all
17
18
# activity types here:
18
19
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
19
- - review_requested
20
+ - opened
21
+ - ready_for_review
20
22
- labeled
21
23
22
24
permissions :
@@ -27,11 +29,13 @@ permissions:
27
29
28
30
jobs :
29
31
sourcery-coding-assistant-review :
30
- # Only run this job when a review is requested or the "sourcery-review"
31
- # label is added to the pull request.
32
+ # Only run this job when a PR is opened and is not in draft state,
33
+ # is moved from draft to ready for review,
34
+ # or the "sourcery-review" label is added to the pull request.
32
35
if : |
33
- github.event.action == 'review_requested' ||
34
- github.event.label.name == 'sourcery-review'
36
+ github.event.action == 'opened' && !github.event.pull_request.draft ||
37
+ github.event.action == 'ready_for_review' ||
38
+ github.event.action == 'labeled' && github.event.label.name == 'sourcery-review'
35
39
36
40
runs-on : ubuntu-latest
37
41
You can’t perform that action at this time.
0 commit comments