MCPcopy
hub / github.com/pyodide/pyodide / get_commits

Function get_commits

tools/backport.py:114–119  ·  view source on GitHub ↗

Return the CommitInfo of the PRs we want to backport

()

Source from the content-addressed store, hash-verified

112
113@functools.cache
114def get_commits() -> list[CommitInfo]:
115 """Return the CommitInfo of the PRs we want to backport"""
116 pr_numbers = get_needs_backport_pr_numbers()
117 commit_history = CommitHistory.from_git("main")
118 commits = [commit_history.lookup_pr(x) for x in pr_numbers]
119 return sorted(commits, key=lambda c: -c.history_idx)
120
121
122#

Callers 3

show_missing_changelogsFunction · 0.85
make_changelog_branchFunction · 0.85
make_backport_branchFunction · 0.85

Calls 3

from_gitMethod · 0.80
lookup_prMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…