type Approval.agent as Ident
This commit is contained in:
parent
8c1979f05c
commit
76647415af
10 changed files with 71 additions and 53 deletions
|
|
@ -145,13 +145,15 @@ fn reconcile_stale_config_pr_approvals(
|
|||
}
|
||||
};
|
||||
for a in pending {
|
||||
if a.kind != hive_sh4re::ApprovalKind::MergeConfigPr || !scanned_agents.contains(&a.agent) {
|
||||
if a.kind != hive_sh4re::ApprovalKind::MergeConfigPr
|
||||
|| !scanned_agents.contains(a.agent.as_str())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
let Ok(pr_number) = a.commit_ref.parse::<u64>() else {
|
||||
continue;
|
||||
};
|
||||
if open_prs.contains(&(a.agent.clone(), pr_number)) {
|
||||
if open_prs.contains(&(a.agent.to_string(), pr_number)) {
|
||||
continue;
|
||||
}
|
||||
match coord
|
||||
|
|
@ -165,7 +167,7 @@ fn reconcile_stale_config_pr_approvals(
|
|||
);
|
||||
coord.emit_approval_resolved(crate::coordinator::ApprovalResolved {
|
||||
id: a.id,
|
||||
agent: &a.agent,
|
||||
agent: a.agent.as_str(),
|
||||
approval_kind: "merge_config_pr",
|
||||
sha_short: a
|
||||
.fetched_sha
|
||||
|
|
|
|||
Loading…
Reference in a new issue