Commit ebb69bb
authored
fix: support pull_request_target event in autolabeler (#1560)
* fix: support pull_request_target event in autolabeler
Fixes #1559
## What
Added pull_request_target as an accepted event type in the autolabeler
event validation check.
## Why
The autolabeler only accepted pull_request events, but pull_request_target
is required for workflows that need write permissions to label PRs from
forks. The payload shape is identical between both events, so no other
code changes are needed.
## Notes
- The v6 release-drafter action supported pull_request_target when used with disable-releaser: true; this restores that capability for the v7 autolabeler sub-action
Signed-off-by: jmeridth <[email protected]>
* fix: run npm run all after PR feedback
Signed-off-by: jmeridth <[email protected]>
---------
Signed-off-by: jmeridth <[email protected]>1 parent bddbd54 commit ebb69bb
5 files changed
Lines changed: 9 additions & 6 deletions
File tree
- dist/actions/autolabeler
- src
- actions/autolabeler
- types
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | | - | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1678 | 1678 | | |
1679 | 1679 | | |
1680 | 1680 | | |
1681 | | - | |
| 1681 | + | |
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
| |||
0 commit comments