semver-common 0.4.4

Common library to use for semantic release core and plugins.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod commit_map {
    use crate::{CommitMap, mock};

    pub fn create() -> CommitMap {
        let mut commit_map = CommitMap::new();
        let change_feat = mock::change::create("^feat(.|\n)*$", "Feature", 2);
        let change_fix = mock::change::create("^fix(.|\n)*$", "Fix", 3);
        let commit_one = mock::commit::create("feat(scope): a test header");
        let commit_two = mock::commit::create("feat(scope): a test header two");
        let commit_three = mock::commit::create("fix(scope): a test header three");
        commit_map.insert(&change_feat, commit_one).unwrap();
        commit_map.insert(&change_feat, commit_two).unwrap();
        commit_map.insert(&change_fix, commit_three).unwrap();
        commit_map
    }
}