Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db875f5

Browse files
committed
Auto-label PRs that modify conditional CI config
Namely, the cibuildwheel and Cygwin workflows.
1 parent 91e521b commit db875f5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"CI: Run cibuildwheel":
3+
- any-glob-to-any-file: ['.github/workflows/cibuildwheel.yml']
4+
"CI: Run cygwin":
5+
- any-glob-to-any-file: ['.github/workflows/cygwin.yml']

.github/workflows/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: "Pull Request Labeler"
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
labeler:
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/labeler@v5
14+
with:
15+
sync-labels: true

0 commit comments

Comments
 (0)