pub struct PrOperations;Expand description
PR Operations Manager
Implementations§
Source§impl PrOperations
impl PrOperations
Sourcepub fn update_pr(pr: &mut PullRequest, options: PrUpdateOptions) -> Result<()>
pub fn update_pr(pr: &mut PullRequest, options: PrUpdateOptions) -> Result<()>
Update PR with new information
Sourcepub fn add_comment(pr: &mut PullRequest, comment: PrComment) -> Result<()>
pub fn add_comment(pr: &mut PullRequest, comment: PrComment) -> Result<()>
Add a comment to PR
Sourcepub fn add_progress_update(
pr: &mut PullRequest,
update: ProgressUpdate,
) -> Result<()>
pub fn add_progress_update( pr: &mut PullRequest, update: ProgressUpdate, ) -> Result<()>
Add a progress update comment to PR
Sourcepub fn add_review(pr: &mut PullRequest, review: PrReview) -> Result<()>
pub fn add_review(pr: &mut PullRequest, review: PrReview) -> Result<()>
Add a review to PR
Sourcepub fn validate_update_options(options: &PrUpdateOptions) -> Result<()>
pub fn validate_update_options(options: &PrUpdateOptions) -> Result<()>
Validate PR update options
Sourcepub fn validate_comment(comment: &PrComment) -> Result<()>
pub fn validate_comment(comment: &PrComment) -> Result<()>
Validate comment
Sourcepub fn validate_review(review: &PrReview) -> Result<()>
pub fn validate_review(review: &PrReview) -> Result<()>
Validate review
Sourcepub fn can_approve(pr: &PullRequest) -> bool
pub fn can_approve(pr: &PullRequest) -> bool
Check if PR can be approved
Sourcepub fn can_merge(pr: &PullRequest) -> bool
pub fn can_merge(pr: &PullRequest) -> bool
Check if PR can be merged
Sourcepub fn can_close(pr: &PullRequest) -> bool
pub fn can_close(pr: &PullRequest) -> bool
Check if PR can be closed
Auto Trait Implementations§
impl Freeze for PrOperations
impl RefUnwindSafe for PrOperations
impl Send for PrOperations
impl Sync for PrOperations
impl Unpin for PrOperations
impl UnwindSafe for PrOperations
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