File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 1
- #
2
- # Workflows, like this one, that are triggered by PRs submitted
3
- # from forked repositories are severly limited in what they can do
4
- # for security reasons. For instance, they can't add or remove
5
- # labels or comments even on the PR that triggered them. Since
6
- # we need to both of those things, GitHub recommends creating a
7
- # separate workflow that does those tasks that's triggered when
8
- # this PR workflow starts or finishes. Since that workflow isn't
9
- # being run in the context of a forked repo, it has all the
10
- # privileges needed to add and remove labels and comments. The
11
- # accompanying OnPRStateChangedPriv workflow does just that.
12
-
13
1
name : PRLabeled
14
2
# WARNING! The run name MUST start with "PR <pr_number>".
15
3
# The accompanying privleged workflow parses this to find
16
4
# the PR number. It's the only reliable way it can get it.
17
5
run-name : " PR ${{ github.event.number }} Labeled by ${{ github.actor }}"
18
6
on :
19
- pull_request :
20
- types : [ opened,synchronize ]
7
+ pull_request_target :
8
+ types : [ opened,synchronize,labeled ]
21
9
22
10
jobs :
23
11
TestCalled :
You can’t perform that action at this time.
0 commit comments