MCPcopy Create free account
hub / github.com/apache/solr / commit_touches_unreleased

Function commit_touches_unreleased

dev-tools/scripts/logchange.py:81–87  ·  view source on GitHub ↗

Return True if the given commit modifies any file under changelog/unreleased/.

(sha, git_root)

Source from the content-addressed store, hash-verified

79
80
81def commit_touches_unreleased(sha, git_root):
82 """Return True if the given commit modifies any file under changelog/unreleased/."""
83 r = subprocess.run(
84 ["git", "diff-tree", "--no-commit-id", "-r", "--name-only", sha],
85 cwd=git_root, capture_output=True, text=True, check=True,
86 )
87 return any(f.startswith("changelog/unreleased/") for f in r.stdout.splitlines())
88
89
90def strip_unreleased_block(changelog_path: Path, dry_run=False):

Callers 1

cmd_forward_portFunction · 0.85

Calls 1

runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…