-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup_2.yml
108 lines (100 loc) · 4.61 KB
/
backup_2.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.pr-checklist-validator-description: &pr-checklist-validator-description
do: description
and:
#Checking if the description is empty
- no_empty:
enabled: true
message: Description matter and should not be empty.
#Checking when both OK and NOK / NA checkboxes are selected
- must_exclude:
regex: '^\s+\-\s\[x\]\sOK\s*\:\s+\-\s\[x\]\sNOK\s*\/\s*NA\s*\:\s*[a-z A-Z \d \: \, \. \- \[\]]+$'
regex_flag: m
message: Selecting both "OK and NOK / OK" checkboxes are invalid, Select any one of the checkboxes in a particular checklist
#Checking when both OK and NOK checkboxes are selected
- must_exclude:
regex: '^\s+\-\s\[x\]\sOK\s*\:\s+\-\s\[x\]\s*NOK\s*\:\s*[a-z A-Z \d \: \, \. \- \[\]]+$'
regex_flag: m
message: Selecting both checkboxes for "OK and NOK" is invalid , Select any one of the checkboxes in a particular checklist
#Checking when both OK and NA checkboxes are selected
- must_exclude:
regex: '^\s+\-\s\[x\]\sOK\s*\:\s+\-\s\[x\]\s*NA\s*\:\s*[a-z A-Z \d \: \, \. \- \[\]]+$'
regex_flag: m
message: Selecting both checkboxes for "OK and NA" is invalid , Select any one of the checkboxes in a particular checklist
#Checking when NOK \ NA is selected
- must_exclude:
regex: '^\s+\-\s\[ \]\sOK\s*\:\s+\-\s\[x\]\s*NOK\s*\/\s*NA\s*\:\s\[enter text here\]'
regex_flag: m
message: When "NOK \ NA" is selected, make sure either NOK or NA is kept by editing with a description
#Checking when both OK and NOK / NA checkboxes are empty
- must_exclude:
regex: '^\s+\-\s\[ \]\sOK\s*\:\s+\-\s\[ \]\s*NOK\s*\/\s*NA\s*\:\s*[a-z A-Z \d \: \, \. \- \[\]]+$'
regex_flag: m
message: Both "OK and NOK / OK" checkboxes should not be empty, Select any one of the checkboxes
#Checking When both OK and NOK checkboxes are empty
- must_exclude:
regex: '^\s+\-\s\[ \]\sOK\s*\:\s+\-\s\[ \]\s*NOK\s*\:\s*[a-z A-Z \d \: \, \. \- \[\]]+$'
regex_flag: m
message: Both "OK and NOK" checkboxes should not be empty, Select any one of the checkboxes
#Checking When both OK and NA checkboxes are empty
- must_exclude:
regex: '^\s+\-\s\[ \]\sOK\s*\:\s+\-\s\[ \]\s*NA\s*\:\s*[a-z A-Z \d \: \, \. \- \[\]]+$'
regex_flag: m
message: Both "OK and NA" checkboxes should not be empty, Select any one of the checkboxes
or:
#This is for OK only
- must_include:
regex: '^\s+\-\s\[x\]\sOK\s*\:\s+\-\s\[\s\]\sNOK\s\/\sNA\s\:\s\[enter text here\]'
regex_flag: m
message: When OK is selected, changes or editing is not allowed
#This is for NOK with description
- must_include:
regex: '^\s+\-\s\[ \]\sOK\s*\:\s+\-\s\[x\]\s*NOK\s*\:\s*[a-z A-Z \d \: \, \. \- \[\]]+$'
regex_flag: m
message: When NA / NOK is selected,this has to be changed or edited to either NOK or NA only with description
#This is for NA with description
- must_include:
regex: '^\s+\-\s\[ \]\sOK\s*\:\s+\-\s\[x\]\s*NA\s*\:\s*[a-z A-Z \d \: \, \. \- \[\]]+$'
regex_flag: m
message: When NA / NOK is selected,this has to be changed or edited to either NA or NOK only with description
.pr-checklist-validator-label: &pr-checklist-validator-label
do: label
and:
- must_exclude:
regex: 'wip'
regex_flag: m
message: Remove "wip" label from the PR to merge
- must_exclude:
regex: 'do not merge'
regex_flag: m
message: Remove "do not merge" label from the PR to merge
.pr-checklist-path: &pr-checklist-path
validate:
- do: or
validate:
- do: changeset
must_exclude:
regex: 'ipnext/aas/*'
- do: and
validate:
- do: changeset
must_include:
regex: 'ipnext/arch/*'
- do: title
begins_with:
match: ['test_']
.pr-checklist-validation-check: &pr-checklist-validation-check
when: pull_request.*
name: "PR: checklist validation"
validate:
- *pr-checklist-validator-description
- *pr-checklist-validator-label
- *pr-checklist-path
.mergeable-test-pr-description-validation-check: &mergeable-test-pr-description-validation-check
validate:
<<: *pr-checklist-validation-check
################################################################################
# Mergeable configuration
################################################################################
version: 2
mergeable:
- *mergeable-test-pr-description-validation-check