Skip to main content

find_opened

Function find_opened 

Source
pub fn find_opened(
    work_id: String,
    repo: String,
    owner: Option<String>,
    branch: String,
    seen_ms: i64,
)
Expand description

An agent holding work_id was seen at seen_ms opening a PR from branch in repo (from owner’s fork when --head named one): look for it on GitHub a few times as it appears, and link the first found that was created by then. Without --head, gh may have pushed to a fork of the user’s, whose owner srv doesn’t know: the last look takes the newest open PRs and matches the branch instead.