feat(python/robomp): allowed personal repository owners to authorize implementations

- Updated configuration to strip the '@' prefix from bot login names.
- Granted personal repository owners authorization to trigger implementations regardless of their GitHub author association.
This commit is contained in:
can1357
2026-06-21 19:05:31 +02:00
parent 5a99705797
commit 4b9f7cd8fa
4 changed files with 45 additions and 3 deletions
+7
View File
@@ -93,6 +93,13 @@ def test_blank_bot_login_rejected(monkeypatch: pytest.MonkeyPatch, env: dict[str
Settings() # type: ignore[call-arg]
def test_bot_login_strips_at_prefix(monkeypatch: pytest.MonkeyPatch, env: dict[str, str]) -> None:
monkeypatch.setenv("ROBOMP_BOT_LOGIN", " @roboomp ")
reset_settings_cache()
cfg = Settings() # type: ignore[call-arg]
assert cfg.bot_login == "roboomp"
def test_model_pool_single(env: dict[str, str]) -> None:
cfg = Settings() # type: ignore[call-arg]
assert cfg.model_pool == (cfg.model,)