pub struct CodeReviewOperations;Expand description
Code Review Operations
Implementations§
Source§impl CodeReviewOperations
impl CodeReviewOperations
Sourcepub fn post_suggestion_comment(
&self,
pr_number: u32,
file_path: &str,
line_number: Option<u32>,
suggestion: &str,
) -> Result<String>
pub fn post_suggestion_comment( &self, pr_number: u32, file_path: &str, line_number: Option<u32>, suggestion: &str, ) -> Result<String>
Post code review suggestion as comment
Sourcepub fn generate_summary_report(
&self,
pr_number: u32,
quality_score: u32,
issues_count: usize,
suggestions_count: usize,
approved: bool,
) -> Result<String>
pub fn generate_summary_report( &self, pr_number: u32, quality_score: u32, issues_count: usize, suggestions_count: usize, approved: bool, ) -> Result<String>
Generate code review summary report
Sourcepub fn track_metrics(
&self,
metrics: &mut CodeReviewMetrics,
approved: bool,
quality_score: u32,
review_time_minutes: u32,
) -> Result<()>
pub fn track_metrics( &self, metrics: &mut CodeReviewMetrics, approved: bool, quality_score: u32, review_time_minutes: u32, ) -> Result<()>
Track review metrics
Sourcepub fn evaluate_conditional_approval(
&self,
pr_number: u32,
conditions: HashMap<String, bool>,
) -> Result<ConditionalApprovalResult>
pub fn evaluate_conditional_approval( &self, pr_number: u32, conditions: HashMap<String, bool>, ) -> Result<ConditionalApprovalResult>
Evaluate conditional approval
Sourcepub fn generate_approval_checklist(
&self,
pr_number: u32,
conditions: &[ApprovalCondition],
) -> Result<String>
pub fn generate_approval_checklist( &self, pr_number: u32, conditions: &[ApprovalCondition], ) -> Result<String>
Generate approval checklist
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeReviewOperations
impl RefUnwindSafe for CodeReviewOperations
impl Send for CodeReviewOperations
impl Sync for CodeReviewOperations
impl Unpin for CodeReviewOperations
impl UnwindSafe for CodeReviewOperations
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