mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-02 13:12:50 +00:00
fix(upstream-triage): suggest dependent cherry-picks in ancestry order (#574)
This commit is contained in:
1 parent
2697fa46fb
commit
1b22a38d3f
3 files changed
+31
-2
No files matched your search
@@ -56,7 +56,7 @@ def git(*args: str) -> str:
|
||||
|
||||
|
||||
def rev_list(range_spec: str) -> list[str]:
|
||||
out = git("rev-list", "--no-merges", range_spec).strip()
|
||||
out = git("rev-list", "--no-merges", "--topo-order", range_spec).strip()
|
||||
return out.splitlines() if out else []
|
||||
|
||||
|
||||
@@ -203,7 +203,8 @@ def main() -> int:
|
||||
lines.append("<details><summary>Ready-to-run cherry-picks (review each before running)</summary>")
|
||||
lines.append("")
|
||||
lines.append("```bash")
|
||||
for short, sha, subj, _ in review:
|
||||
# Report rows stay newest first; commands must apply ancestors first.
|
||||
for short, sha, subj, _ in reversed(review):
|
||||
lines.append(f"git cherry-pick {sha} # {subj}")
|
||||
lines.append("```")
|
||||
lines.append("")
|
||||
|
||||
Reference in new issue
Block a user