2021-01-01 21:49:51 +03:00
|
|
|
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2020-02-06 14:54:07 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
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:
|
2021-01-05 13:31:48 +03:00
|
|
|
- "status-success=PRs"
|
2019-04-16 20:16:30 +03:00
|
|
|
# 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:
|
2021-01-05 13:31:48 +03:00
|
|
|
- "status-success=PRs"
|
2019-05-09 18:02:21 +03:00
|
|
|
# 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: {}
|
2020-02-06 14:54:07 +03:00
|
|
|
|