pub struct BitbucketIntegration { /* private fields */ }Expand description
High-level integration between stacks and Bitbucket
Implementations§
Source§impl BitbucketIntegration
impl BitbucketIntegration
Sourcepub fn new(stack_manager: StackManager, config: CascadeConfig) -> Result<Self>
pub fn new(stack_manager: StackManager, config: CascadeConfig) -> Result<Self>
Create a new Bitbucket integration
Sourcepub async fn update_all_pr_descriptions(
&self,
stack_id: &Uuid,
) -> Result<Vec<u64>>
pub async fn update_all_pr_descriptions( &self, stack_id: &Uuid, ) -> Result<Vec<u64>>
Update all PR descriptions in a stack with current hierarchy
Sourcepub async fn submit_entry(
&mut self,
stack_id: &Uuid,
entry_id: &Uuid,
title: Option<String>,
description: Option<String>,
draft: bool,
) -> Result<PullRequest>
pub async fn submit_entry( &mut self, stack_id: &Uuid, entry_id: &Uuid, title: Option<String>, description: Option<String>, draft: bool, ) -> Result<PullRequest>
Submit a single stack entry as a pull request
Sourcepub async fn check_stack_status(
&self,
stack_id: &Uuid,
) -> Result<StackSubmissionStatus>
pub async fn check_stack_status( &self, stack_id: &Uuid, ) -> Result<StackSubmissionStatus>
Check the status of all pull requests in a stack
Sourcepub async fn list_pull_requests(
&self,
state: Option<PullRequestState>,
) -> Result<PullRequestPage>
pub async fn list_pull_requests( &self, state: Option<PullRequestState>, ) -> Result<PullRequestPage>
List all pull requests for the repository
Sourcepub async fn update_prs_after_rebase(
&mut self,
stack_id: &Uuid,
branch_mapping: &HashMap<String, String>,
) -> Result<Vec<String>>
pub async fn update_prs_after_rebase( &mut self, stack_id: &Uuid, branch_mapping: &HashMap<String, String>, ) -> Result<Vec<String>>
Update pull requests after a rebase using smart force push strategy This preserves all review history by updating existing branches instead of creating new ones
Sourcepub async fn check_enhanced_stack_status(
&mut self,
stack_id: &Uuid,
) -> Result<StackSubmissionStatus>
pub async fn check_enhanced_stack_status( &mut self, stack_id: &Uuid, ) -> Result<StackSubmissionStatus>
Check the enhanced status of all pull requests in a stack
Auto Trait Implementations§
impl Freeze for BitbucketIntegration
impl !RefUnwindSafe for BitbucketIntegration
impl Send for BitbucketIntegration
impl !Sync for BitbucketIntegration
impl Unpin for BitbucketIntegration
impl !UnwindSafe for BitbucketIntegration
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