levi-core 0.1.3

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
15
16
17
use myko::prelude::*;

/// Observed branch head. id = "{project_id}:{branch}" — LWW: the newest
/// observation wins.
#[myko_item]
pub struct RefFact {
    pub project_id: String,
    pub branch: String,
    /// Head commit sha (hex).
    pub head: String,
    /// RFC3339
    pub observed: String,
}

pub fn ref_fact_id(project_id: &str, branch: &str) -> String {
    format!("{project_id}:{branch}")
}