semver-common 1.2.3

Common library to use for semantic release core and plugins.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{Alert, run_command};
use r_log::Logger;

/// Creates a new git tag with a supplied name and message.
pub fn tag(name: &str, message: &str, logger: &Logger) -> Result<(), Alert> {
    run_command(
        "git",
        ["tag", "-a", name, "-m", &format!("{} {}", message, name)],
        Some(logger),
    )?;
    Ok(())
}