fix: None crash in providers, _merge_deepest loop, lock-file false positives, stage() race, cache TTL, config merge, changelog indent, template check

This commit is contained in:
sankalp committed 2026-06-06 21:33:51 +05:45
1 parent fb87bfa146
commit 70e9068082
14 files changed
+31 -17

No files matched your search

+6 -2
View File
@@ -70,7 +70,7 @@ class DiffBuilder:
def _partition(self, files: List[str]) -> tuple[list[str], list[str]]:
summary, to_diff = [], []
for f in files:
if any(p in f for p in IGNORED_DIFF_PATTERNS):
if Path(f).name in IGNORED_DIFF_PATTERNS:
summary.append(f"[METADATA UPDATED] {f}")
else:
to_diff.append(f)
@@ -128,7 +128,11 @@ class FileGrouper:
deepest = max(candidates, key=lambda p: len(Path(p).parts))
parent_path = str(Path(deepest).parent)
new_key = "root" if parent_path == "." else parent_path
groups.setdefault(new_key, []).extend(groups.pop(deepest))
files = groups.pop(deepest)
if new_key in groups:
groups[new_key].extend(files)
else:
groups["root"].extend(files)
return groups