Module client

Module client 

Source
Expand description

GitHub API client wrapper

Provides clean API for GitHub operations without exposing Octocrab.

§Examples

use gitgix::GitHubClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let gh = GitHubClient::with_token("ghp_...")?;

    // Use with any GitHub operation
    let issue = gitgix::create_issue(
        gh,
        "owner",
        "repo",
        "Issue title",
        None, None, None
    ).await?;

    Ok(())
}

Structs§

GitHubClient
GitHub API client wrapper that encapsulates Octocrab.
GitHubClientBuilder
Builder for creating GitHubClient with various authentication methods