fix(#1940): carry pr_number on the live approval_added event
This commit is contained in:
parent
6516d4282e
commit
4c53898382
4 changed files with 74 additions and 31 deletions
|
|
@ -1663,7 +1663,15 @@ async fn post_request_spawn(
|
|||
// refetch. Spawn approvals carry no diff/sha.
|
||||
state
|
||||
.coord
|
||||
.emit_approval_added(id, &name, "spawn", None, None, None);
|
||||
.emit_approval_added(crate::coordinator::ApprovalAdded {
|
||||
id,
|
||||
agent: &name,
|
||||
approval_kind: "spawn",
|
||||
sha_short: None,
|
||||
diff: None,
|
||||
description: None,
|
||||
pr_number: None,
|
||||
});
|
||||
(StatusCode::OK, "ok").into_response()
|
||||
}
|
||||
Err(e) => error_response(&format!("request-spawn {name} failed: {e:#}")),
|
||||
|
|
|
|||
Loading…
Reference in a new issue