pub struct MergeReadiness {
pub mergeable: bool,
pub ci_passing: bool,
pub approved: bool,
pub no_conflicts: bool,
pub blockers: Vec<String>,
}Expand description
Result of Scm::mergeability. The reaction engine reads this to decide
whether the approved-and-green reaction should fire. Every bool is
“true means this particular gate is green”.
mergeable and no_conflicts look redundant but aren’t quite:
mergeableis the provider’s top-line verdict — GitHub aggregates branch protection, required reviews, required checks, and conflicts into one bool.no_conflictsis specifically “the branch has no text-level merge conflicts with base”.
A PR can be mergeable: false, no_conflicts: true (branch is clean
but a required review is missing) and that distinction matters for
reaction routing: changes-requested vs merge-conflicts are
different reaction keys.
Fields§
§mergeable: bool§ci_passing: bool§approved: bool§no_conflicts: bool§blockers: Vec<String>Human-readable reasons the PR isn’t mergeable yet. Empty when all gates are green.
Implementations§
Trait Implementations§
Source§impl Clone for MergeReadiness
impl Clone for MergeReadiness
Source§fn clone(&self) -> MergeReadiness
fn clone(&self) -> MergeReadiness
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MergeReadiness
impl Debug for MergeReadiness
Source§impl<'de> Deserialize<'de> for MergeReadiness
impl<'de> Deserialize<'de> for MergeReadiness
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MergeReadiness
impl PartialEq for MergeReadiness
Source§impl Serialize for MergeReadiness
impl Serialize for MergeReadiness
impl Eq for MergeReadiness
impl StructuralPartialEq for MergeReadiness
Auto Trait Implementations§
impl Freeze for MergeReadiness
impl RefUnwindSafe for MergeReadiness
impl Send for MergeReadiness
impl Sync for MergeReadiness
impl Unpin for MergeReadiness
impl UnsafeUnpin for MergeReadiness
impl UnwindSafe for MergeReadiness
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> 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
Compare self to
key and return true if they are equal.