Answer prose round 1: 0 🔴, 4 🟡 (0 misread); take the reviewer's rewrites

This commit is contained in:
Lilleman
2026-11-19 22:20:43 +01:00
parent ceacc86a88
commit 470be28759
9 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class ReadyPull:
def ready_pulls(forge: Forge, run: Run) -> list[ReadyPull] | Failure:
"""Each open pull request from origin's own branches that is no draft, which Gitea tells by its title (GITEA_DRAFT). A row whose number or head is no number or commit ID is left out, since callers pass them to git."""
"""Each open pull request from origin's own branches that is no draft, which Gitea tells by its title (GITEA_DRAFT). A row is left out where its head is no commit ID, since the caller passes the head to git, or where its number is not all digits, since the caller prints it."""
if forge == "gh":
# 100 is the most GitHub's API lists a page; gh lists 30 unless told.
listed = run(["gh", "pr", "list", "--limit", "100", "--json", "number,url,headRefOid,isDraft,isCrossRepository", "--template", "{{range .}}{{.number}}\t{{.url}}\t{{.headRefOid}}\t{{.isDraft}}\t{{.isCrossRepository}}\n{{end}}"])