Skip to main content

git_authored

Function git_authored 

Source
pub fn git_authored(subject: &str) -> bool
Expand description

Whether git composed this subject rather than a person.

use majordomus_cli::commit::policy::git_authored;
assert!(git_authored("Merge pull request #249 from korczis/fix"));
assert!(git_authored("Revert \"feat(x): a thing\""));
assert!(!git_authored("feat(x): a thing"));