(args)
| 612 | |
| 613 | |
| 614 | def make_changelog_branch(args) -> None: |
| 615 | commits = get_commits() |
| 616 | prs = commits_to_prs(commits) |
| 617 | version = get_version() |
| 618 | run(["git", "fetch", "upstream", "main:main", "--update-head-ok", "--force"]) |
| 619 | run(["git", "switch", "main"]) |
| 620 | changelog = Changelog.from_file(CHANGELOG) |
| 621 | changelog.unreleased.create_pr_index() |
| 622 | branch_name = f"changelog-for-{version}" |
| 623 | force_branch_update(branch_name) |
| 624 | changelog.set_patch_release_notes(version, prs, INSERT_DATE_HERE) |
| 625 | changelog.remove_release_notes_from_unreleased_section(prs) |
| 626 | changelog.write_text() |
| 627 | run(["git", "add", CHANGELOG]) |
| 628 | run(["git", "commit", "-m", f"Update changelog for v{version}"]) |
| 629 | diff_old_new_branch(branch_name) |
| 630 | |
| 631 | |
| 632 | def make_backport_branch(args) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…