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§
Sourcefn match_emoji(&self, message: &str) -> Result<MatcherResult>
fn match_emoji(&self, message: &str) -> Result<MatcherResult>
Match a commit message to an appropriate gitmoji Returns (emoji_code, formatted_message) or None