Skip to content

Commit 4a50ceb

Browse files
Update pr-auto-label.yaml
Signed-off-by: Matty Widdop <[email protected]>
1 parent b278331 commit 4a50ceb

File tree

1 file changed

+21
-21
lines changed

1 file changed

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

33
on:
4-
pull_request:
5-
types:
6-
- opened
4+
pull_request:
5+
types:
6+
- opened
77

88
jobs:
9-
labeler:
10-
if: github.event.pull_request.user.type != 'Bot'
11-
permissions:
12-
pull-requests: write
9+
labeler:
10+
if: github.event.pull_request.user.type != 'Bot'
11+
permissions:
12+
pull-requests: write
1313

14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Add "sync" label to PR
17-
run: gh pr edit "$PR_URL" --add-label sync
18-
env:
19-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
PR_URL: ${{ github.event.pull_request.html_url }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Add "sync" label to PR
17+
run: gh pr edit "$PR_URL" --add-label sync --repo "$PR_REPO"
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
PR_URL: ${{ github.event.pull_request.html_url }}
21+
PR_REPO: ${{ github.repository }}
2122

22-
- name: Comment on PR to explain sync label
23-
run: gh pr comment "$PR_URL" --body "This pull request has been marked to **automatically
24-
sync** to its base branch. You can **disable** this behavior by removing the `sync`
25-
label."
26-
env:
27-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
PR_URL: ${{ github.event.pull_request.html_url }}
23+
- name: Comment on PR to explain 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"
25+
env:
26+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
PR_URL: ${{ github.event.pull_request.html_url }}
28+
PR_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)