pub trait IssueProvider: Send + Sync {
// Required methods
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_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 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 comment<'life0, 'life1, 'async_trait>(
&'life0 self,
number: u32,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn close<'life0, 'life1, 'async_trait>(
&'life0 self,
number: u32,
comment: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for fetching and transitioning issues regardless of source.
Required Methods§
Sourcefn 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.
Sourcefn 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.
Sourcefn 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.