Commit 42aebf8
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 42aebf8
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
0 commit comments