Slice 6: notifications per §15
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+13
-1
@@ -25,7 +25,7 @@ from __future__ import annotations
|
||||
import json
|
||||
from dataclasses import dataclass
|
||||
|
||||
from . import db
|
||||
from . import db, notify
|
||||
from .gitea import Gitea
|
||||
|
||||
|
||||
@@ -89,6 +89,18 @@ def _log(
|
||||
json.dumps(details) if details else None,
|
||||
),
|
||||
)
|
||||
# §15 chokepoint per §19.1 brief: fan-out runs inline after the
|
||||
# audit row lands. notify.py owns the routing rules and the
|
||||
# auto-watch upsert per §15.6; the call is intentionally a
|
||||
# single line here so the chokepoint is one place to read.
|
||||
notify.fan_out_from_action(
|
||||
actor_user_id=actor.user_id,
|
||||
action_kind=action_kind,
|
||||
rfc_slug=rfc_slug,
|
||||
branch_name=branch_name,
|
||||
pr_number=pr_number,
|
||||
details=details,
|
||||
)
|
||||
|
||||
|
||||
class Bot:
|
||||
|
||||
Reference in New Issue
Block a user