Skip to content

Commit 41a1508

Browse files
Use label-check and attach-next-milestone-action (#492)
1 parent 803a9bd commit 41a1508

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/label-check.yml

+19
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
+18
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@bc07be829f693829263e57d5e8489f4e57d3d420
16+
with:
17+
token: ${{ secrets.MILESTONE_LABELER_TOKEN }}
18+
force: true

0 commit comments

Comments
 (0)