You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pr-auto-label.yml
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,14 @@ jobs:
12
12
13
13
runs-on: ubuntu-latest
14
14
steps:
15
-
- run: gh pr edit $PR --add-label sync
15
+
- name: Add "sync" label to PR
16
+
run: gh pr edit "$PR_URL" --add-label sync
16
17
env:
17
18
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18
-
PR: ${{ github.event.number }}
19
+
PR_URL: ${{ github.event.pull_request.html_url }}
20
+
21
+
- name: Comment on PR to explain sync label
22
+
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."
0 commit comments