Skip to content

Commit 12a8bba

Browse files
committed
ci: ensure triage actions work for PRs from forks
1 parent dff71ee commit 12a8bba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: pr-title
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- opened
77
- edited

.github/workflows/triage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: triage
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- opened
77
issues:
@@ -31,7 +31,6 @@ jobs:
3131
steps:
3232
- name: Tag with 'created-by'
3333
uses: actions/github-script@v7
34-
if: github.event.action == 'opened'
3534
with:
3635
github-token: ${{ secrets.GITHUB_TOKEN }}
3736
script: |
@@ -93,6 +92,7 @@ jobs:
9392
steps:
9493
- uses: actions/checkout@v4
9594
with:
95+
ref: ${{ github.event.pull_request.base.ref }}
9696
token: ${{ secrets.GITHUB_TOKEN }}
9797
- uses: ./.github/actions/triage
9898
with:

0 commit comments

Comments
 (0)