(gradle_cmd, git_root, dry_run=False)
| 171 | |
| 172 | |
| 173 | def 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 | # --------------------------------------------------------------------------- |
no test coverage detected
searching dependent graphs…