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
+6 -1
View File
@@ -38,12 +38,17 @@ def _default_branch_protection_config() -> dict[str, Any]:
The ``status_check_contexts`` are read from the ``DEVX_STATUS_CHECKS``
environment variable (comma-separated) or default to just the quality
check context.
The ``push_whitelist_usernames`` is read from ``DEVX_PUSH_WHITELIST``
(comma-separated) to allow the release bot to push directly to master.
"""
push_whitelist = os.environ.get("DEVX_PUSH_WHITELIST", "")
whitelist = [u.strip() for u in push_whitelist.split(",") if u.strip()]
return {
"branch_name": "master",
"enable_push": True,
"enable_push_whitelist": True,
"push_whitelist_usernames": [],
"push_whitelist_usernames": whitelist,
"enable_status_check": True,
"status_check_contexts": _default_status_checks(),
"required_approvals": 0,