fn extract_links_from_issue(issue: &mut GithubIssue) -> Option<Vec<String>>{
    issue.load_comments().unwrap();
    let comments = &issue.comments;
    
    if let Some(comments) = comments {
        let mut comment_links = comments
            .iter()
            .flat_map(|comment| autolink::extract_links(&comment.body))
            .collect::<Vec<String>>();

        let mut links = autolink::extract_links(&issue.body);
        links.append(&mut comment_links);
    
        return Some(links);
    }
    
    None
}
/// Loads an issue and all its comments from Github, extracts all links, using the autolink module.
Loads an issue and all its comments from Github, extracts all links, using the autolink module.
Loads an issue and all its comments from Github extracts all links using the autolink module .
fn extract_links_from_issue(issue: &mut GithubIssue) -> Option<Vec<String>>{
    issue.load_comments().unwrap();
    let comments = &issue.comments;
    if let Some(comments) = comments {
        let mut comment_links = comments
            .iter()
            .flat_map(|comment| autolink::extract_links(&comment.body))
            .collect::<Vec<String>>();
        let mut links = autolink::extract_links(&issue.body);
        links.append(&mut comment_links);
        return Some(links);
    }
    None
}
fn extract_links_from_issue ( issue : & mut GithubIssue ) -> Option < Vec < String > > { issue . load_comments ( ) . unwrap ( ) ; let comments = & issue . comments ; if let Some ( comments ) = comments { let mut comment_links = comments . iter ( ) . flat_map ( | comment | autolink :: extract_links ( & comment . body ) ) . collect :: < Vec < String > > ( ) ; let mut links = autolink :: extract_links ( & issue . body ) ; links . append ( & mut comment_links ) ; return Some ( links ) ; } None }
Loads an issue and all its comments from Github, extracts all links, using the autolink module.
Loads an issue and all its comments from Github extracts all links using the autolink module .
issue
&mut GithubIssue
issue
&mut GithubIssue