MCPcopy
hub / github.com/pyodide/pyodide / make_changelog_branch

Function make_changelog_branch

tools/backport.py:614–629  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

612
613
614def 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
632def make_backport_branch(args) -> None:

Callers

nothing calls this directly

Calls 11

get_commitsFunction · 0.85
commits_to_prsFunction · 0.85
get_versionFunction · 0.85
force_branch_updateFunction · 0.85
diff_old_new_branchFunction · 0.85
create_pr_indexMethod · 0.80
write_textMethod · 0.80
runFunction · 0.70
from_fileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…