pub enum Blocking {
No,
Yes,
Conflict,
Unsaid,
}Expand description
Whether a failing check actually stands between the pull request and
main, according to the forge.
The rollup lists every check equally, so coverage going red on a
repository that deliberately does not require it looked exactly like a
broken build - and magi answered by spending a fix round on a change that
was fine. Pull request 37 had to be merged by hand for that reason: the
only red check was editorconfig, which was failing because the action
could not fetch its own binary, and which the repository does not require.
mergeStateStatus is where GitHub applies the required-check set, so it
is the one field that can tell the difference.
Variants§
No
Required checks are satisfied and the branch merges cleanly.
Yes
Something required is failing or missing.
Conflict
The branch no longer merges: the base moved under it.
Unsaid
The forge did not say - an older gh, or a token without the scope.
Treated as Yes, because refusing to guess is the rule everywhere
else in this module.
Implementations§
Trait Implementations§
impl Copy for Blocking
impl Eq for Blocking
impl StructuralPartialEq for Blocking
Auto Trait Implementations§
impl Freeze for Blocking
impl RefUnwindSafe for Blocking
impl Send for Blocking
impl Sync for Blocking
impl Unpin for Blocking
impl UnsafeUnpin for Blocking
impl UnwindSafe for Blocking
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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