Skip to content

Commit ae68459

Browse files
committed
Change trigger on OnPrChanged test workflow
1 parent 289ea30 commit ae68459

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

Diff for: .github/workflows/OnPRChanged.yml

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
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-
131
name: PRLabeled
142
# WARNING! The run name MUST start with "PR <pr_number>".
153
# The accompanying privleged workflow parses this to find
164
# the PR number. It's the only reliable way it can get it.
175
run-name: "PR ${{ github.event.number }} Labeled by ${{ github.actor }}"
186
on:
19-
pull_request:
20-
types: [ opened,synchronize ]
7+
pull_request_target:
8+
types: [ opened,synchronize,labeled ]
219

2210
jobs:
2311
TestCalled:

0 commit comments

Comments
 (0)