Answer prose round 1: 0 🔴, 4 🟡 (0 misread); take the reviewer's rewrites
This commit is contained in:
+1
-1
@@ -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}}"])
|
||||
|
||||
Reference in New Issue
Block a user