Name the four kinds of breach, the two level rules and the round title's spelling, and table the step-up rules

This commit is contained in:
2026-11-13 02:45:35 +01:00
parent 1f3349065a
commit e1ca619e96
7 changed files with 50 additions and 11 deletions
+1
View File
@@ -30,5 +30,6 @@ def earlier_titles(directory: str, amends: bool) -> list[str]:
default = git_repo.default_ref(directory, guarded=True)
titles = default if isinstance(default, Failure) else git_repo.branch_titles(default, directory, timeout=5, guarded=True)
if isinstance(titles, Failure):
# Counting no earlier title lets the commit through unless its own number is past the cap: a hook that refused here would stop every round commit of an unattended run whose git is slow or whose origin has no default branch.
return []
return titles[1:] if amends else titles