Skip to content

Commit 9a35f12

Browse files
Merge branch 'main' into agm-2025-update
Signed-off-by: Matty Widdop <18513864+MattyTheHacker@users.noreply.github.com>
2 parents 0533b95 + 7c97feb commit 9a35f12

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/pr-auto-label.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "Automatically mark PRs to sync"
22

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

@@ -14,13 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Add "sync" label to PR
17-
run: gh pr edit "$PR_URL" --add-label sync
17+
run: gh pr edit "$PR_URL" --add-label sync --repo "$PR_REPO"
1818
env:
1919
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
PR_URL: ${{ github.event.pull_request.html_url }}
21+
PR_REPO: ${{ github.repository }}
2122

2223
- name: Comment on PR to explain sync label
23-
run: gh pr comment "$PR_URL" --body "This pull request has been marked to **automatically sync** to its base branch. You can **disable** this behavior by removing the `sync` label."
24+
run: gh pr comment "$PR_URL" --body "This pull request has been marked to **automatically sync** to its base branch. You can **disable** this behavior by removing the `sync` label." --repo "$PR_REPO"
2425
env:
2526
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2627
PR_URL: ${{ github.event.pull_request.html_url }}
28+
PR_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)