Answer principles round 1: 0 🔴, 3 🟡; take the next release from chunk_item's pick, read default_plan once, and test the changelog, the next release and the unreadable case
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from chunk_pick import default_plan, unreleased_changes
|
||||
from failure import Failure
|
||||
from git_repo import file_at, full_history, git
|
||||
from comprehension_history import HISTORY, HistoryChange
|
||||
@@ -21,9 +20,3 @@ def history_changes(default: str) -> list[HistoryChange] | Failure:
|
||||
return after
|
||||
changes.append(HistoryChange(commit, before, after))
|
||||
return changes
|
||||
|
||||
|
||||
def changes_unreleased(root: str, default: str) -> bool | Failure:
|
||||
"""Whether the default branch holds a change after its last release, counted as chunk-preflight counts it: `chunk_pick.unreleased_changes`. root is the checkout the git commands run in."""
|
||||
changes = unreleased_changes(default_plan(root, default).cut)
|
||||
return changes if isinstance(changes, Failure) else changes > 0
|
||||
|
||||
Reference in New Issue
Block a user