22
22
# For instance for needs: work if CI failed, we just add a label as action.
23
23
24
24
pull_request_rules :
25
- # From review to needs: work - reviewers request
25
+ # From needs: review to needs: work - reviewers request
26
26
- name : " label needs: work when changes were requested"
27
27
conditions :
28
28
# Reviewers
@@ -34,7 +34,7 @@ pull_request_rules:
34
34
remove :
35
35
- " needs: review"
36
36
37
- # From review to needs: work - CI failure
37
+ # From needs: review to needs: work - CI failure
38
38
- name : " label needs: work when travis-ci failed"
39
39
conditions :
40
40
# Travis failing
@@ -46,7 +46,7 @@ pull_request_rules:
46
46
remove :
47
47
- " needs: review"
48
48
49
- # From review to needs: work - CI failure
49
+ # From needs: review to needs: work - CI failure
50
50
- name : " label needs: work when Jenkins CI failed - pr head"
51
51
conditions :
52
52
# Jenkins CI failing
@@ -58,7 +58,7 @@ pull_request_rules:
58
58
remove :
59
59
- " needs: review"
60
60
61
- # From review to needs: work - CI failure
61
+ # From needs: review to needs: work - CI failure
62
62
- name : " label needs: work when Jenkins CI failed - any of the pipeline"
63
63
conditions :
64
64
# Jenkins CI failing - any of the pipeline
@@ -70,6 +70,7 @@ pull_request_rules:
70
70
remove :
71
71
- " needs: review"
72
72
73
+ # From needs: review to needs: CI
73
74
- name : " label needs: CI when at least one reviewers approval"
74
75
conditions :
75
76
# Labels
@@ -91,23 +92,7 @@ pull_request_rules:
91
92
remove :
92
93
- " needs: review"
93
94
94
- - name : remove ready for merge when merged
95
- conditions :
96
- - merged
97
- - label=ready for merge
98
- actions :
99
- label :
100
- remove :
101
- - ready for merge
102
-
103
- - name : add "do not merge" label when WIP is in title
104
- conditions :
105
- - title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
106
- actions :
107
- label :
108
- add :
109
- - do not merge
110
-
95
+ # Conflict in the PR - needs: work and a comment to notify a user
111
96
- name : " label needs: work when there is a conflict"
112
97
conditions :
113
98
- conflict
@@ -128,6 +113,7 @@ pull_request_rules:
128
113
add :
129
114
- " release-version: feature branch"
130
115
116
+ # Ready for integration. Not yet auto merge, will be enabled once carefuly tested
131
117
- name : label "ready for merge" when ready
132
118
conditions :
133
119
# Labels
@@ -151,3 +137,21 @@ pull_request_rules:
151
137
remove :
152
138
- " needs: CI"
153
139
140
+ # Clean-up after merge
141
+ - name : remove ready for merge when merged
142
+ conditions :
143
+ - merged
144
+ - label=ready for merge
145
+ actions :
146
+ label :
147
+ remove :
148
+ - ready for merge
149
+
150
+ - name : add "do not merge" label when WIP is in title
151
+ conditions :
152
+ - title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
153
+ actions :
154
+ label :
155
+ add :
156
+ - do not merge
157
+
0 commit comments