2019-04-16 20:16:30 +03:00
|
|
|
pull_request_rules:
|
2019-05-09 18:02:21 +03:00
|
|
|
- name: "strict rebase"
|
2019-04-16 20:16:30 +03:00
|
|
|
conditions:
|
|
|
|
# All Azure builds should be green:
|
|
|
|
- "status-success=digital-asset.daml"
|
|
|
|
# CLA check must pass:
|
|
|
|
- "status-success=license/cla"
|
|
|
|
# Special label to request automerge:
|
2019-06-12 15:37:07 +03:00
|
|
|
- "label=automerge-after-rebase"
|
2019-04-16 20:16:30 +03:00
|
|
|
# Note that this only matches people with write / admin access to the repo,
|
|
|
|
# see <https://doc.mergify.io/conditions.html#attribute-list>
|
|
|
|
- "#approved-reviews-by>=1"
|
|
|
|
# Note: mergify cannot break branch protection rules
|
|
|
|
actions:
|
|
|
|
merge:
|
|
|
|
method: squash
|
2019-04-17 16:25:36 +03:00
|
|
|
strict: smart
|
|
|
|
strict_method: rebase
|
2019-04-16 20:16:30 +03:00
|
|
|
# Takes no options, see <https://doc.mergify.io/examples.html#deleting-merged-branch>
|
|
|
|
delete_head_branch: {}
|
2019-05-09 18:02:21 +03:00
|
|
|
- name: "unsafe squash"
|
|
|
|
conditions:
|
|
|
|
# All Azure builds should be green:
|
|
|
|
- "status-success=digital-asset.daml"
|
|
|
|
# CLA check must pass:
|
|
|
|
- "status-success=license/cla"
|
|
|
|
# Special label to request automerge:
|
2019-06-12 15:37:07 +03:00
|
|
|
- "label=automerge"
|
2019-05-09 18:02:21 +03:00
|
|
|
# Note that this only matches people with write / admin access to the repo,
|
|
|
|
# see <https://doc.mergify.io/conditions.html#attribute-list>
|
|
|
|
- "#approved-reviews-by>=1"
|
|
|
|
# Note: mergify cannot break branch protection rules
|
|
|
|
actions:
|
|
|
|
merge:
|
|
|
|
method: squash
|
|
|
|
# Takes no options, see <https://doc.mergify.io/examples.html#deleting-merged-branch>
|
|
|
|
delete_head_branch: {}
|