pub async fn fetch_repo_tree(
client: &Octocrab,
owner: &str,
repo: &str,
language: &str,
keywords: &[String],
) -> Result<Vec<String>>Expand description
Fetches the repository file tree from GitHub.
Attempts to fetch from the default branch (main, then master). Returns filtered list of source file paths based on repository language and optional keywords.
§Arguments
client- Authenticated Octocrab clientowner- Repository ownerrepo- Repository namelanguage- Repository primary language for filteringkeywords- Optional keywords extracted from issue title for relevance matching
§Errors
Returns an error if the API request fails (but not if tree is unavailable).