pub struct PrManager { /* private fields */ }Expand description
PR Manager - Handles pull request creation and management
Implementations§
Source§impl PrManager
impl PrManager
Sourcepub fn with_template(template: PrTemplate) -> Self
pub fn with_template(template: PrTemplate) -> Self
Create a new PR manager with custom template
Sourcepub fn generate_title(
&self,
context: &TaskContext,
template: Option<&PrTemplate>,
) -> Result<String>
pub fn generate_title( &self, context: &TaskContext, template: Option<&PrTemplate>, ) -> Result<String>
Generate PR title from task context
Sourcepub fn generate_body(
&self,
context: &TaskContext,
template: Option<&PrTemplate>,
) -> Result<String>
pub fn generate_body( &self, context: &TaskContext, template: Option<&PrTemplate>, ) -> Result<String>
Generate PR body from task context
Sourcepub fn validate_pr_creation(
&self,
context: &TaskContext,
options: &PrOptions,
) -> Result<()>
pub fn validate_pr_creation( &self, context: &TaskContext, options: &PrOptions, ) -> Result<()>
Validate PR creation inputs
Sourcepub fn create_pr_from_context(
&self,
context: TaskContext,
options: PrOptions,
) -> Result<PullRequest>
pub fn create_pr_from_context( &self, context: TaskContext, options: PrOptions, ) -> Result<PullRequest>
Create a PR from task context
Sourcepub fn link_to_issues(
&self,
pr: &mut PullRequest,
issue_numbers: Vec<u32>,
) -> Result<()>
pub fn link_to_issues( &self, pr: &mut PullRequest, issue_numbers: Vec<u32>, ) -> Result<()>
Link PR to related issues
Sourcepub fn validate_pr_content(&self, pr: &PullRequest) -> Result<()>
pub fn validate_pr_content(&self, pr: &PullRequest) -> Result<()>
Validate PR content
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrManager
impl RefUnwindSafe for PrManager
impl Send for PrManager
impl Sync for PrManager
impl Unpin for PrManager
impl UnwindSafe for PrManager
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