-
Notifications
You must be signed in to change notification settings - Fork 71
42 lines (41 loc) · 1.33 KB
/
label_check.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
33
34
35
36
37
38
39
40
41
42
---
name: Label Checker
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
jobs:
check_project_label:
name: 检查项目标签
runs-on: ubuntu-latest
steps:
- name: Check project label
uses: docker://agilepathway/pull-request-label-checker:latest
with:
any_of: project/monitor,project/apm,project/log,project/public
repo_token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment PR
if : ${{ failure() }}
uses: thollander/actions-comment-pull-request@v2
with:
message: |
请在 PR 中添加项目标签,例如:`project/monitor`、`project/apm`、`project/log`、`project/public`
check_type_label:
name: 检查类型标签
runs-on: ubuntu-latest
steps:
- name: Check type label
uses: docker://agilepathway/pull-request-label-checker:latest
with:
any_of: fix,feat,docs,style,refactor,test,chore,merge,perf
repo_token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment PR
if : ${{ failure() }}
uses: thollander/actions-comment-pull-request@v2
with:
message: |
请在 PR 中添加类型标签,例如:`fix`、`feat`、`docs`、`style`、`refactor`、`test`、`chore`、`merge`, `perf`