pub async fn fetch_pr_details(
client: &Octocrab,
owner: &str,
repo: &str,
number: u64,
) -> Result<PrDetails>Expand description
Fetches PR details including file diffs from GitHub.
Uses Octocrab to fetch PR metadata and file changes.
§Arguments
client- Authenticated Octocrab clientowner- Repository ownerrepo- Repository namenumber- PR number
§Returns
PrDetails struct with PR metadata and file diffs.
§Errors
Returns an error if the API call fails or PR is not found.