Skip to main content

add_claim_matches

Function add_claim_matches 

Source
pub fn add_claim_matches(
    results: &mut Vec<WhoResult>,
    t: &Target,
    claims: &[WorkClaim],
    facts: &[WorkFacts],
    now_ms: i64,
)
Expand description

Add every claim in claims that touches t to results, under the agent that made it (a result of its own when its facts matched nothing), then sort as WhoIsWorkingOn does. facts supplies the status, goal, repository and branch of a claimer that has no result yet. The caller’s own claims must already be left out.