You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let key = (protection.target, protection.pattern.as_str());
1163
+
if pattern_counts.get(&key).copied().unwrap_or_default() > 1
1164
+
&& protection.name.is_none()
1165
+
{
1157
1166
bail!(
1158
-
r#"repo '{}' uses multiple {:?} protections with the pattern `{}`"#,
1167
+
r#"repo '{}' uses multiple {:?} protections with the pattern `{}`; when multiple protections share the same target and pattern, each protection must specify `name`"#,
0 commit comments