Answer stability round 2: 1 🔴, 0 🟡 (0 misread); match Gitea pull requests by head label, which survives origin deleting a merged branch

This commit is contained in:
2026-11-10 11:13:26 +01:00
parent 67c7c979a0
commit 23b7848be6
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -736,7 +736,7 @@ class LarvReviewTool(unittest.TestCase):
def fake_tea(self, number, head):
"""Puts a tea on PATH whose API lists one open pull request, number, from origin's chunk at head."""
pull = f'{{"number": {number}, "head": {{"ref": "chunk", "sha": "{head}", "repo": {{"full_name": "a/b"}}}}, "base": {{"repo": {{"full_name": "a/b"}}}}}}'
pull = f'{{"number": {number}, "head": {{"ref": "chunk", "label": "chunk", "sha": "{head}", "repo": {{"full_name": "a/b"}}}}, "base": {{"repo": {{"full_name": "a/b"}}}}}}'
self.fake_tea_script(f"echo '[{pull}]'")
def fake_tea_script(self, body):