forked from COS-301/graduates
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.97 KB
/
metatest.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: 'Meta Test'
on:
pull_request:
types: [ opened, reopened, labeled ]
jobs:
label-check:
name: Checks if labels are used
runs-on: ubuntu-latest
steps:
#Checking out to the develop branch
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Has atleast one priority label
uses: mheap/github-action-required-labels@v1
with:
mode: minimum
count: 1
labels: 'priority:high, priority:low, priority:medium'
- name: Has atleast one type label
uses: mheap/github-action-required-labels@v1
with:
mode: minimum
count: 1
labels: 'type:bug, type:change, type:chore, type:cosmetic, type:documentation, type:enhance, type:feature, type:fix, type:refactor, type:test'
- name: Has atleast one status label
uses: mheap/github-action-required-labels@v1
with:
mode: minimum
count: 1
labels: 'status:needs-info, status:needs-tests, status:not-ready, status:on-hold, status:ready, status:next-release'
- name: Has atleast one role label
uses: mheap/github-action-required-labels@v1
with:
mode: minimum
count: 1
labels: 'role:api-engineer, role:business-analyst, role:data-engineer, role:designer, role:developer-operations, role:project-manager, role:project-owner, role:service-engineer, role:tester, role:ui-engineer'
- name: Has atleast one scope label
uses: mheap/github-action-required-labels@v1
with:
mode: minimum
count: 1
labels: 'scope:api,scope:cicd,scope:client,scope:db,scope:design,scope:ui,scope:repository'
milestone-check:
name: Checks if milestone is used
runs-on: ubuntu-latest
steps:
- name: Has milestone check
if: github.event.pull_request.milestone == null
run: |
echo "you don't have a milestone"
exit 1