pub struct ReviewOptions {
pub action: ReviewAction,
pub summary: String,
pub comments: Vec<ReviewComment>,
pub marker: String,
pub allow_draft: bool,
pub allow_closed: bool,
pub delete_review_comments: bool,
}Expand description
A struct to describe a Pull Request review.
Each review is considered to be about the PR event’s changes. There is no support for posting reviews on older/outdated PR events.
Fields§
§action: ReviewActionThe course of action that the PR review suggests.
summary: StringA summary of the PR review.
This is an overview of the review’s comments.
comments: Vec<ReviewComment>A list of comments for changes to the PR.
marker: StringA string used to mark/identify each comment (and Self::summary) as a
comment submitted by this software.
User comments may be indistinguishable from bot/generated comments if this value is not unique enough.
If the git server employs Markdown syntax for comments, then it is recommended to set this to an HTML comment that is unique to your CI application:
<!-- my-cool-CI-app-name -->The default value for this is an HTML comment generated from this crate’s name and version along with the compile-tome’s datetime. For example:
<!-- git-bot-feedback/0.1.0/Jul-14-2025_17-00 -->allow_draft: boolAllow posting reviews on draft Pull Requests?
allow_closed: boolAllow posting reviews on closed Pull Requests?
delete_review_comments: boolPermanently delete PR review outdated comments instead of hiding them.
Here be dragons!
Use with extreme caution when asserting this flag.
Setting this flag as true will permanently
delete PR review comments that may be pivotal to a thread of discussion.
Note, this does not apply to PR review summary comments nor threads of discussion within a review.
Trait Implementations§
Source§impl Clone for ReviewOptions
impl Clone for ReviewOptions
Source§fn clone(&self) -> ReviewOptions
fn clone(&self) -> ReviewOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReviewOptions
impl Debug for ReviewOptions
Source§impl Default for ReviewOptions
impl Default for ReviewOptions
Source§impl PartialEq for ReviewOptions
impl PartialEq for ReviewOptions
impl Eq for ReviewOptions
impl StructuralPartialEq for ReviewOptions
Auto Trait Implementations§
impl Freeze for ReviewOptions
impl RefUnwindSafe for ReviewOptions
impl Send for ReviewOptions
impl Sync for ReviewOptions
impl Unpin for ReviewOptions
impl UnsafeUnpin for ReviewOptions
impl UnwindSafe for ReviewOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.