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

Function run_logchange_generate

dev-tools/scripts/logchange.py:173–182  ·  view source on GitHub ↗
(gradle_cmd, git_root, dry_run=False)

Source from the content-addressed store, hash-verified

171
172
173def run_logchange_generate(gradle_cmd, git_root, dry_run=False):
174 run([gradle_cmd, "logchangeGenerate"], cwd=git_root, dry_run=dry_run)
175 strip_unreleased_block(git_root / "CHANGELOG.md", dry_run=dry_run)
176 # logchangeGenerate may create/touch changelog/unreleased/version-summary.md;
177 # remove it so it doesn't clutter the working tree.
178 summary = git_root / "changelog" / "unreleased" / "version-summary.md"
179 if summary.exists():
180 print(f" Removing {summary.relative_to(git_root)}")
181 if not dry_run:
182 summary.unlink()
183
184
185# ---------------------------------------------------------------------------

Callers 2

cmd_prepareFunction · 0.85
cmd_forward_portFunction · 0.85

Calls 3

strip_unreleased_blockFunction · 0.85
runFunction · 0.70
existsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…