use crate::domain::error::RepositoryError;
pub enum PrLifecycle {
Open,
NotOpen,
}
pub fn is_open(lifecycle: &PrLifecycle) -> bool {
matches!(lifecycle, PrLifecycle::Open)
}
pub trait PrStateRepository {
fn fetch_lifecycle(&self) -> Result<PrLifecycle, RepositoryError>;
}