MCPcopy Create free account
hub / github.com/base/base / already_squashed

Function already_squashed

etc/scripts/local/reth_release.py:249–253  ·  view source on GitHub ↗

Return True when this PR's squash marker is already on the branch.

(clone: Path, upstream_tag: str, pr: PatchPr)

Source from the content-addressed store, hash-verified

247
248
249def already_squashed(clone: Path, upstream_tag: str, pr: PatchPr) -> bool:
250 """Return True when this PR's squash marker is already on the branch."""
251 log = git(clone, "log", "--format=%s", f"{upstream_tag}..HEAD", check=False)
252 needle = squash_marker(pr)
253 return any(line.startswith(needle) for line in log.splitlines())
254
255
256def non_merge_commits(clone: Path, commits: tuple[str, ...]) -> list[str]:

Callers 1

prepare_releaseFunction · 0.85

Calls 2

gitFunction · 0.85
squash_markerFunction · 0.85

Tested by

no test coverage detected