Return the CommitInfo of the PRs we want to backport
()
| 112 | |
| 113 | @functools.cache |
| 114 | def 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 | # |
no test coverage detected
searching dependent graphs…