levi-core 0.2.0

Entities, status resolution, and ranking for levi, the git-aware issue tracker
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use myko::prelude::*;

/// blocker blocks blocked. id = "{blocker_task_id}->{blocked_task_id}" —
/// deterministic, so `dep add` is idempotent and `dep rm` is a plain DEL.
#[myko_item]
pub struct Dependency {
    pub project_id: String,
    pub blocker_task_id: String,
    pub blocked_task_id: String,
}

pub fn dependency_id(blocker: &str, blocked: &str) -> String {
    format!("{blocker}->{blocked}")
}