Skip to content

Commit b30a92c

Browse files
Merge branch 'main' into dependabot/cargo/bots/glambot/cargo-99e5bc1966
2 parents a62b906 + 3dc7716 commit b30a92c

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎robot-repo-automaton/src/catalog.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ impl ErrorCatalog {
155155
})
156156
}
157157

158+
/// Extract catalogue entries from a quoted `define` form or an already
159+
/// unwrapped list.
160+
///
161+
/// Returns a catalogue-parse error when `value` is not a non-empty list.
158162
fn find_catalog_content(value: &Value) -> Result<Vec<&Value>> {
159163
// Handle (define error-catalog '(...)) structure
160164
if let Some(cons) = value.as_cons() {

‎robot-repo-automaton/src/confidence.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,11 @@ impl ThresholdConfig {
298298
}
299299
}
300300

301-
/// Check if a file is protected from bot deletion or modification.
301+
/// Return whether a target matches a protected basename, extension, or
302+
/// directory marker used to lower confidence for automated fixes.
302303
///
303-
/// Protected files include project state, documentation, and checkpoint files
304-
/// that bots should NEVER delete or overwrite. These represent intentional
305-
/// project work that cannot be regenerated from templates.
304+
/// Basenames are matched case-insensitively; extension and directory matches
305+
/// are case-sensitive.
306306
fn is_protected_file(target: &str) -> bool {
307307
let basename = target.rsplit('/').next().unwrap_or(target);
308308

‎robot-repo-automaton/src/hypatia.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,9 @@ impl CicdHyperAClient {
639639
}
640640

641641
/// Convert a verisimdb-data recipe JSON to a Rule.
642+
///
643+
/// Returns `None` unless the recipe has a string `id` and either a string
644+
/// `file_glob` or `pattern`.
642645
fn recipe_to_rule(recipe: &serde_json::Value) -> Option<Rule> {
643646
let id = recipe.get("id")?.as_str()?.to_string();
644647
let name = recipe

0 commit comments

Comments
 (0)