pub struct GitLabService { /* private fields */ }Expand description
GitLab service using reqwest
Implementations§
Trait Implementations§
Source§impl PlatformService for GitLabService
impl PlatformService for GitLabService
Source§fn find_existing_pr<'life0, 'life1, 'async_trait>(
&'life0 self,
head_branch: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<PullRequest>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_existing_pr<'life0, 'life1, 'async_trait>(
&'life0 self,
head_branch: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<PullRequest>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Find an existing open PR for a head branch
Source§fn create_pr_with_options<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
head: &'life1 str,
base: &'life2 str,
title: &'life3 str,
draft: bool,
) -> Pin<Box<dyn Future<Output = Result<PullRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn create_pr_with_options<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
head: &'life1 str,
base: &'life2 str,
title: &'life3 str,
draft: bool,
) -> Pin<Box<dyn Future<Output = Result<PullRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Create a new PR with explicit draft option. Read more
Source§fn update_pr_base<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
new_base: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PullRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_pr_base<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
new_base: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PullRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update the base branch of an existing PR
Source§fn publish_pr<'life0, 'async_trait>(
&'life0 self,
pr_number: u64,
) -> Pin<Box<dyn Future<Output = Result<PullRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish_pr<'life0, 'async_trait>(
&'life0 self,
pr_number: u64,
) -> Pin<Box<dyn Future<Output = Result<PullRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publish a draft PR (convert to ready for review)
Source§fn list_pr_comments<'life0, 'async_trait>(
&'life0 self,
pr_number: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<PrComment>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_pr_comments<'life0, 'async_trait>(
&'life0 self,
pr_number: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<PrComment>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List comments on a PR
Source§fn create_pr_comment<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_pr_comment<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a comment on a PR
Source§fn update_pr_comment<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
comment_id: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_pr_comment<'life0, 'life1, 'async_trait>(
&'life0 self,
pr_number: u64,
comment_id: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update an existing comment on a PR
Source§fn config(&self) -> &PlatformConfig
fn config(&self) -> &PlatformConfig
Get the platform configuration
Source§fn create_pr<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
head: &'life1 str,
base: &'life2 str,
title: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<PullRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn create_pr<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
head: &'life1 str,
base: &'life2 str,
title: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<PullRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Create a new PR with default options (non-draft). Read more
Auto Trait Implementations§
impl Freeze for GitLabService
impl !RefUnwindSafe for GitLabService
impl Send for GitLabService
impl Sync for GitLabService
impl Unpin for GitLabService
impl !UnwindSafe for GitLabService
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