Skip to main content

add_open_prs

Function add_open_prs 

Source
async fn add_open_prs<F, Fut>(
    body: &mut Value,
    arguments: &Value,
    pr: Option<u64>,
    me: &str,
    ask_path: F,
)
where F: Fn(String) -> Fut, Fut: Future<Output = Option<Value>>,
Expand description

Add the open PRs that touch the question (open_prs.rs) to srv’s answer, for the repository srv resolved. With pr, the agents on this computer are the ones with that PR’s files changed or edited (ask_path, srv’s answer for one file), not everyone in the repository. A failure is reported in the answer (pr_error) and never fails the call.