Commit f7c66ad
committed
Auto trigger PR reviews when they are from branches in repo
Pull request events identify members as "contributors", so the
workflows are not auto-triggered. But there are some contributors
who are not members, so workflows would fail on forks.
In this change, we switch the condition for PR events to check for
whether the PR was created from a branch in the repo or from a fork.
Note that only users with write access to the repo can create branches.1 parent e4b0716 commit f7c66ad
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
50 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
54 | | - | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
0 commit comments