mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/12269/head
parent
957d458a24
commit
999051fc2d
24
.mergify.yml
24
.mergify.yml
|
@ -76,7 +76,7 @@ pull_request_rules:
|
|||
remove:
|
||||
- "needs: review"
|
||||
|
||||
# From needs: review to needs: CI
|
||||
# From needs: review or needs: work to needs: CI. One approval means we should be good to start CI
|
||||
- name: "label needs: CI when at least one reviewers approval"
|
||||
conditions:
|
||||
- base~=feature-mergify
|
||||
|
@ -99,28 +99,6 @@ pull_request_rules:
|
|||
- "needs: review"
|
||||
- "needs: work"
|
||||
|
||||
# From needs: work to needs: CI
|
||||
- name: "label needs: CI it was approved and pr-head needs to be rerun again"
|
||||
conditions:
|
||||
- base~=feature-mergify
|
||||
# Labels
|
||||
- "label=needs: work"
|
||||
|
||||
# Reviewers, at least one approval and no changes requested
|
||||
- "#changes-requested-reviews-by=0"
|
||||
- "#approved-reviews-by>=0"
|
||||
|
||||
# CI green policy, at least Travis should be green
|
||||
- status-success~=continuous-integration/travis-ci/pr
|
||||
# new CI needs to be done
|
||||
- status-neutral~=continuous-integration/jenkins/pr-head
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "needs: CI"
|
||||
remove:
|
||||
- "needs: work"
|
||||
|
||||
# Conflict in the PR - needs: work and a comment to notify a user
|
||||
- name: "label needs: work when there is a conflict"
|
||||
conditions:
|
||||
|
|
Loading…
Reference in New Issue