Пример #1
0
def test_pr_is_automerge():
    labels = [
        {"name": "CLA signed"},
        {"name": util.AUTOMERGE_LABEL},
        {"name": "awaiting review"},
    ]
    assert util.pr_is_automerge(labels) is True
Пример #2
0
def test_pr_is_not_automerge():
    labels = [{"name": "awaiting merge"}]
    assert util.pr_is_automerge(labels) is False