feat(python/robomp): implemented has_authorized_impl_event in the
- Implement `has_authorized_impl_event` in the database to retrieve historical authorization state. - Update `_enforce_impl_authorization` to permit actions if prior events on the issue provided implementation authorization. - Normalize maintainer logins by stripping `[bot]` suffixes and allow match-regex to ignore them.
This commit is contained in:
@@ -534,6 +534,10 @@ def test_extract_mention_accepts_prefixed_or_app_bot_login(configured_login: str
|
||||
assert extract_mention("@roboomp go ahead", configured_login) == "go ahead"
|
||||
|
||||
|
||||
def test_extract_mention_strips_literal_app_suffix_from_body() -> None:
|
||||
assert extract_mention("@roboomp[bot] go ahead", "roboomp[bot]") == "go ahead"
|
||||
|
||||
|
||||
def test_extract_mention_returns_none_without_mention() -> None:
|
||||
assert extract_mention("hello there", "robomp-bot") is None
|
||||
assert extract_mention(None, "robomp-bot") is None
|
||||
|
||||
Reference in New Issue
Block a user