fetch_pr_details

Function fetch_pr_details 

Source
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 client
  • owner - Repository owner
  • repo - Repository name
  • number - 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.