feat(jobs): t3code events go back to the dispatching conversation, quiet branches close at night
This commit is contained in:
1 parent
2bf2326178
commit
6db6c7b6ec
3 files changed
+43
-3
No files matched your search
@@ -1,4 +1,4 @@
|
||||
"""`POST /hooks/t3code`: тред завершился, упал или спрашивает - срочно в мастер."""
|
||||
"""`POST /hooks/t3code`: событие треда - срочно в разговор, который его запустил."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -15,7 +15,12 @@ QUESTION_HINT = (
|
||||
|
||||
|
||||
async def t3code_event(run: JobRun) -> None:
|
||||
await run.inject_master(describe(run.payload), urgency="urgent", origin="t3code")
|
||||
await run.inject_into(
|
||||
run.payload.get("origin"),
|
||||
describe(run.payload),
|
||||
urgency="urgent",
|
||||
origin="t3code",
|
||||
)
|
||||
|
||||
|
||||
def describe(p: dict[str, Any]) -> str:
|
||||
|
||||
Reference in new issue
Block a user