Trait GitmojiMatcher

Source
pub trait GitmojiMatcher {
    // Required methods
    fn match_emoji(&self, message: &str) -> Result<MatcherResult>;
    fn name(&self) -> &'static str;
}
Expand description

Core trait for gitmoji matching strategies

Required Methods§

Source

fn match_emoji(&self, message: &str) -> Result<MatcherResult>

Match a commit message to an appropriate gitmoji Returns (emoji_code, formatted_message) or None

Source

fn name(&self) -> &'static str

Get the name of this matcher

Implementors§