pub enum PrState {
Merged,
Closed,
Draft,
Blocked(PrBlocker),
ChecksRunning,
ReadyToMerge,
NothingBlocking,
}Expand description
Where a pull request stands, as one verdict — the single thing to tell someone who just opened it.
Composed from pr_blocker rather than re-deriving it, so the PR list, the Command Center
row and the PR screen cannot disagree about the same pull request; each renders this at a
different length.
Variants§
Merged
Shipped.
Closed
Closed without merging.
Draft
Not open for review yet.
Blocked(PrBlocker)
Something is in the author’s way — see PrBlocker.
ChecksRunning
CI hasn’t finished: neither blocked nor clear.
ReadyToMerge
Nothing blocking and approved and mergeable — the merge button is live.
NothingBlocking
Nothing blocking, but not yet approved.
Implementations§
Trait Implementations§
impl Copy for PrState
impl Eq for PrState
impl StructuralPartialEq for PrState
Auto Trait Implementations§
impl Freeze for PrState
impl RefUnwindSafe for PrState
impl Send for PrState
impl Sync for PrState
impl Unpin for PrState
impl UnsafeUnpin for PrState
impl UnwindSafe for PrState
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