Skip to content

Commit 999051f

Browse files
committed
mergify: simplify needs CI transition
from review or work - approval and update (pr head yellow) should result in CI run. These 2 preconditions should be sufficient to move to CI stage.
1 parent 957d458 commit 999051f

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.mergify.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pull_request_rules:
7676
remove:
7777
- "needs: review"
7878

79-
# From needs: review to needs: CI
79+
# From needs: review or needs: work to needs: CI. One approval means we should be good to start CI
8080
- name: "label needs: CI when at least one reviewers approval"
8181
conditions:
8282
- base~=feature-mergify
@@ -99,28 +99,6 @@ pull_request_rules:
9999
- "needs: review"
100100
- "needs: work"
101101

102-
# From needs: work to needs: CI
103-
- name: "label needs: CI it was approved and pr-head needs to be rerun again"
104-
conditions:
105-
- base~=feature-mergify
106-
# Labels
107-
- "label=needs: work"
108-
109-
# Reviewers, at least one approval and no changes requested
110-
- "#changes-requested-reviews-by=0"
111-
- "#approved-reviews-by>=0"
112-
113-
# CI green policy, at least Travis should be green
114-
- status-success~=continuous-integration/travis-ci/pr
115-
# new CI needs to be done
116-
- status-neutral~=continuous-integration/jenkins/pr-head
117-
actions:
118-
label:
119-
add:
120-
- "needs: CI"
121-
remove:
122-
- "needs: work"
123-
124102
# Conflict in the PR - needs: work and a comment to notify a user
125103
- name: "label needs: work when there is a conflict"
126104
conditions:

0 commit comments

Comments
 (0)