mirror of
https://github.com/smittix/intercept.git
synced 2026-07-21 15:58:10 -07:00
Add drone ops mode and retire DMR support
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
"""Drone Ops policy helpers."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def required_approvals_for_action(action_type: str) -> int:
|
||||
"""Return required approvals for a given action type."""
|
||||
action = (action_type or '').strip().lower()
|
||||
if action.startswith('passive_'):
|
||||
return 1
|
||||
return 2
|
||||
Reference in New Issue
Block a user