DEVX-1: fix: allow release bot to push to protected master
Post-merge / detect-type (push) Successful in 14s
Post-merge / validate-commit-msg (push) Successful in 9s
Post-merge / vikunja (push) Successful in 15s
Post-merge / sync-wiki (push) Successful in 47s
Post-merge / configure-repo (push) Successful in 18s
Post-merge / release (push) Successful in 1m14s
Post-merge / badges (push) Successful in 38s

This commit was merged in pull request #10.
This commit is contained in:
2026-06-22 16:53:42 +00:00
parent 6297b50601
commit 0c378ed8e2
3 changed files with 17 additions and 1 deletions
+10
View File
@@ -45,6 +45,16 @@ class TestDefaultConfigs:
config = _default_branch_protection_config()
assert config["status_check_contexts"] == ["check1", "check2", "check3"]
def test_push_whitelist_from_env(self) -> None:
with patch.dict("os.environ", {"DEVX_PUSH_WHITELIST": "emil, alice"}):
config = _default_branch_protection_config()
assert config["push_whitelist_usernames"] == ["emil", "alice"]
def test_push_whitelist_empty_by_default(self) -> None:
with patch.dict("os.environ", {}, clear=True):
config = _default_branch_protection_config()
assert config["push_whitelist_usernames"] == []
class TestConfigureRepo:
@patch.dict("os.environ", {"REPO_TOKEN": "tok"}, clear=True)