pub struct BotFilter { /* private fields */ }Available on crate feature
vcs-git only.Expand description
Matches author identities against a bot-exclusion pattern.
Implementations§
Source§impl BotFilter
impl BotFilter
Sourcepub fn new(pattern: &str) -> Result<Self, Error>
pub fn new(pattern: &str) -> Result<Self, Error>
Compile a bot-exclusion pattern.
Matching is case-insensitive, which is what
DEFAULT_BOT_PATTERN
has always documented, and what the substring-style patterns
users write expect: --bot-pattern renovate matches
Renovate Bot. The flag
is only the default for the pattern, so an expert can restore
case sensitivity for all or part of it with an inline (?-i) —
(?-i)Foo does not match foo.
§Errors
Returns Error::InvalidBotPattern when pattern is not a
valid regular expression.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BotFilter
impl RefUnwindSafe for BotFilter
impl Send for BotFilter
impl Sync for BotFilter
impl Unpin for BotFilter
impl UnsafeUnpin for BotFilter
impl UnwindSafe for BotFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more