forked from Stat585-at-ISU/blog-2019
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
51 lines (51 loc) · 1.53 KB
/
.mergify.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
pull_request_rules:
- name: Reject merge of new blog post
conditions:
- files~=[\d{2}]/LastnameFirstname\.(rmd|Rmd)
actions:
label:
add: ['modifies-template']
comment:
message: You cannot modify the LastnameFirstname.Rmd file. Try again, but only modify the file with your name this time.
- name: Reject merge of new blog post
conditions:
- files~=.gitignore
actions:
label:
add: ['illegal-files']
comment:
message: Do not push gitignore files.
- name: Reject merge of new blog post
conditions:
- files~=.Rproj
actions:
label:
add: ['illegal-files']
comment:
message: Do not push Rproject files.
- name: Reject merge of new blog post
conditions:
- files~=.Rprofile
actions:
label:
add: ['illegal-files']
comment:
message: Do not push Rprofile files.
- name: automatic merge of new blog post
conditions:
- files~=[\d{2}]/(Mc)?[A-Z][a-z]{1,}[A-Z][a-z]{1,}\.(Rmd|rmd)
- label!=modifies-template
- label!=illegal-files
actions:
merge:
method: merge
- name: automatic merge of new blog post (with number warning)
conditions:
- files~=[\d{2}]/(Mc)?[A-Z][a-z]{1,}[A-Z][a-z]{1,}[\d{0,}]\.(Rmd|rmd)
- label!=modifies-template
- label!=illegal-files
actions:
comment:
message: There should not be any numbers in your blog file name. Please adhere to the LastnameFirstname.Rmd scheme.
merge:
method: merge