Skip to content

Commit f19f260

Browse files
Use label-check and attach-next-milestone-action (#64)
1 parent eb6216d commit f19f260

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/label-check.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Labels
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- labeled
8+
- unlabeled
9+
10+
env:
11+
LABELS: ${{ join( github.event.pull_request.labels.*.name, ' ' ) }}
12+
13+
jobs:
14+
check-type-label:
15+
name: ensure type label
16+
runs-on: ubuntu-latest
17+
steps:
18+
- if: "contains( env.LABELS, 'type: ' ) == false"
19+
run: exit 1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Milestone
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- closed
7+
branches:
8+
- "main"
9+
10+
jobs:
11+
milestone_pr:
12+
name: attach to PR
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: scientific-python/attach-next-milestone-action@f94a5235518d4d34911c41e19d780b8e79d42238
16+
with:
17+
token: ${{ secrets.MILESTONE_LABELER_TOKEN }}
18+
force: true

0 commit comments

Comments
 (0)