@@ -38,17 +38,22 @@ func Config(gh *client.GitHub) ([]AutomaticCheck, []ManualCheck) {
38
38
{
39
39
Description : "Changes to 'docs' folder must be reviewed/authored by at least one devrel and one tech-staff" ,
40
40
If : c .FileChanged (gh , "^docs/" ),
41
- Then : r .Or (
42
- r .And (
43
- r .AuthorInTeam (gh , "devrels " ),
41
+ Then : r .And (
42
+ r .Or (
43
+ r .AuthorInTeam (gh , "tech-staff " ),
44
44
r .ReviewByTeamMembers (gh , "tech-staff" , 1 ),
45
45
),
46
- r .And (
47
- r .AuthorInTeam (gh , "tech-staff " ),
46
+ r .Or (
47
+ r .AuthorInTeam (gh , "devrels " ),
48
48
r .ReviewByTeamMembers (gh , "devrels" , 1 ),
49
49
),
50
50
),
51
51
},
52
+ {
53
+ Description : "Must not contain the \" don't merge\" label" ,
54
+ If : c .Label ("don't merge" ),
55
+ Then : r .Never (),
56
+ },
52
57
}
53
58
54
59
manual := []ManualCheck {
@@ -59,8 +64,11 @@ func Config(gh *client.GitHub) ([]AutomaticCheck, []ManualCheck) {
59
64
},
60
65
{
61
66
Description : "The pull request description provides enough details" ,
62
- If : c .Not (c .AuthorInTeam (gh , "core-contributors" )),
63
- Teams : Teams {"core-contributors" },
67
+ If : c .And (
68
+ c .Not (c .AuthorInTeam (gh , "core-contributors" )),
69
+ c .Not (c .Author ("dependabot[bot]" )),
70
+ ),
71
+ Teams : Teams {"core-contributors" },
64
72
},
65
73
{
66
74
Description : "Determine if infra needs to be updated before merging" ,
0 commit comments