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:
can1357
2026-06-21 19:18:37 +02:00
parent 4b2e4085e0
commit 24a0c8428a
10 changed files with 140 additions and 29 deletions
+2
View File
@@ -1121,6 +1121,8 @@ def _enforce_impl_authorization(
"""Refuse first publish on issue classes that require maintainer authorization."""
if bindings.impl_authorized:
return
if bindings.db.has_authorized_impl_event(bindings.issue_key):
return
row = bindings.db.get_issue(bindings.issue_key)
if row is not None:
if row.pr_number is not None: