pub enum RunStatus {
Pending,
Implementing,
Reviewing,
Fixing,
AwaitingMerge,
Merging,
Complete,
Failed,
}Expand description
Run status for pipeline runs.
Variants§
Implementations§
Source§impl RunStatus
impl RunStatus
Sourcepub const fn next(self, has_findings: bool, cycle: u32) -> Self
pub const fn next(self, has_findings: bool, cycle: u32) -> Self
Determine the next state in the pipeline based on review findings and cycle count.
- After implementing, always review.
- If reviewer finds issues and we haven’t hit max cycles, fix.
- If reviewer finds issues at max cycles, fail.
- Clean review goes to awaiting merge (waiting for PR to be merged).
- After fixing, go back to reviewing.
- After awaiting merge, proceed to merging.
- After merging, complete.
pub const fn is_terminal(self) -> bool
Trait Implementations§
impl Copy for RunStatus
impl Eq for RunStatus
impl StructuralPartialEq for RunStatus
Auto Trait Implementations§
impl Freeze for RunStatus
impl RefUnwindSafe for RunStatus
impl Send for RunStatus
impl Sync for RunStatus
impl Unpin for RunStatus
impl UnsafeUnpin for RunStatus
impl UnwindSafe for RunStatus
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§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.