in gateway/gateway.py [0:0]
def create_pattern(actions: ActionsYAML) -> list[str]:
"""
Create a pattern list of valid action references.
Args:
actions: Dictionary of actions and their references
Returns:
list[str]: List of action patterns (name@ref)
"""
pattern: list[str] = []
pattern.extend(
f"{name}@{ref}"
for name, refs in actions.items()
for ref, details in refs.items()
if date.today() < details.get("expires_at") or details.get("keep")
)
return pattern