Skip to content

Commit 7ce5580

Browse files
committed
Run on pull_request, not target
1 parent 114122d commit 7ce5580

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/labeler.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
needs release notes:
2-
- all:
3-
- changed-files:
4-
- any-glob-to-any-file: 'changes/*.rst'
2+
- changed-files:
3+
- any-glob-to-any-file: 'changes/*.rst'

.github/workflows/needs_release_notes.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "Pull Request Labeler"
22

33
on:
4-
pull_request_target
4+
pull_request
55

66
jobs:
77
labeler:
@@ -12,6 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.event.pull_request.head.sha }}
1517

1618
- name: Run Pull Request Labeler
1719
uses: actions/[email protected]

0 commit comments

Comments
 (0)