pub struct GithubIssueProvider<R: CommandRunner> { /* private fields */ }Expand description
Wraps GhClient to implement IssueProvider for GitHub issues.
Implementations§
Source§impl<R: CommandRunner> GithubIssueProvider<R>
impl<R: CommandRunner> GithubIssueProvider<R>
Trait Implementations§
Source§impl<R: CommandRunner + 'static> IssueProvider for GithubIssueProvider<R>
impl<R: CommandRunner + 'static> IssueProvider for GithubIssueProvider<R>
Source§fn get_ready_issues<'life0, 'life1, 'async_trait>(
&'life0 self,
label: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<PipelineIssue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_ready_issues<'life0, 'life1, 'async_trait>(
&'life0 self,
label: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<PipelineIssue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch all open issues with the given label.
Source§fn get_issue<'life0, 'async_trait>(
&'life0 self,
number: u32,
) -> Pin<Box<dyn Future<Output = Result<PipelineIssue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_issue<'life0, 'async_trait>(
&'life0 self,
number: u32,
) -> Pin<Box<dyn Future<Output = Result<PipelineIssue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a single issue by number.
Source§fn transition<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
number: u32,
from: &'life1 str,
to: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn transition<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
number: u32,
from: &'life1 str,
to: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Transition an issue from one label to another.
Auto Trait Implementations§
impl<R> Freeze for GithubIssueProvider<R>
impl<R> RefUnwindSafe for GithubIssueProvider<R>where
R: RefUnwindSafe,
impl<R> Send for GithubIssueProvider<R>
impl<R> Sync for GithubIssueProvider<R>
impl<R> Unpin for GithubIssueProvider<R>
impl<R> UnsafeUnpin for GithubIssueProvider<R>
impl<R> UnwindSafe for GithubIssueProvider<R>where
R: RefUnwindSafe,
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