pub struct GitHubMiner { /* private fields */ }Expand description
GitHub organization miner Phase 1: Basic organization and repository fetching
Implementations§
Source§impl GitHubMiner
impl GitHubMiner
Sourcepub fn new(token: Option<String>) -> Self
pub fn new(token: Option<String>) -> Self
Create a new GitHub miner
§Arguments
token- Optional GitHub personal access token for authenticated requests
§Examples
use organizational_intelligence_plugin::github::GitHubMiner;
// Public repos only (unauthenticated)
let miner = GitHubMiner::new(None);
// With authentication (higher rate limits)
let miner_auth = GitHubMiner::new(Some("ghp_token".to_string()));Sourcepub async fn fetch_organization_repos(
&self,
org_name: &str,
) -> Result<Vec<RepoInfo>>
pub async fn fetch_organization_repos( &self, org_name: &str, ) -> Result<Vec<RepoInfo>>
Fetch all repositories for an organization
§Arguments
org_name- GitHub organization name
§Errors
Returns error if:
- Organization name is empty
- API request fails
- Organization doesn’t exist
§Examples
use organizational_intelligence_plugin::github::GitHubMiner;
let miner = GitHubMiner::new(None);
let repos = miner.fetch_organization_repos("rust-lang").await?;
println!("Found {} repositories", repos.len());Auto Trait Implementations§
impl !Freeze for GitHubMiner
impl !RefUnwindSafe for GitHubMiner
impl Send for GitHubMiner
impl Sync for GitHubMiner
impl Unpin for GitHubMiner
impl !UnwindSafe for GitHubMiner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more