Skip to content

Commit 4a604eb

Browse files
authored
Merge pull request #174 from mxpv/win
Apply Windows label
2 parents c9e4729 + d3dac29 commit 4a604eb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/labeler.yml

+9
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 5
1515

16+
# Required by gh
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
PR_NUMBER: ${{ github.event.number }}
20+
1621
steps:
1722
- uses: actions/labeler@v4
1823
with:
1924
# Auto-include paths starting with dot (e.g. .github)
2025
dot: true
2126
# Remove labels when matching files are reverted or no longer changed by the PR
2227
sync-labels: true
28+
29+
# Apply OS-windows label if PR title contains 'Windows'
30+
- run: gh pr edit $PR_NUMBER --add-label OS-windows
31+
if: contains(github.event.pull_request.title, 'Windows')

0 commit comments

Comments
 (0)