Skip to main content

IssueProvider

Trait IssueProvider 

Source
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§

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,

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,

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,

Transition an issue from one label to another.

Source

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,

Post a comment on an issue (or append to the local issue body).

Source

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,

Close an issue.

Implementors§