-
Notifications
You must be signed in to change notification settings - Fork 79
32 lines (30 loc) · 1 KB
/
validate-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Validate PR
on:
pull_request:
branches:
- main
- canary
types:
- opened
- synchronize
- labeled
- unlabeled
jobs:
validate-pr:
name: Validate PR
runs-on: ubuntu-latest
steps:
- name: Check label
if: |
!contains(github.event.pull_request.labels.*.name, 'bug') &&
!contains(github.event.pull_request.labels.*.name, 'enhancement') &&
!contains(github.event.pull_request.labels.*.name, 'chore') &&
!contains(github.event.pull_request.labels.*.name, 'feature') &&
!contains(github.event.pull_request.labels.*.name, 'release') &&
!contains(github.event.pull_request.labels.*.name, 'dependencies')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL: ${{ github.event.pull_request.comments_url }}
run: |
echo "::error::次のラベルを付けてください。 labels: bug, enhancement, feature, chore, release, dependencies"
exit 1