fix(queue): use label= (singular) not labels= (plural) for Gitea 1.22.6 API (#1306) #2412
@@ -783,7 +783,7 @@ def list_queued_issues() -> list[dict]:
|
||||
query={
|
||||
"state": "open",
|
||||
"type": "pulls",
|
||||
"labels": QUEUE_LABEL,
|
||||
"label": QUEUE_LABEL,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@@ -1130,7 +1130,7 @@ def test_list_candidate_issues_omits_label_filter_when_auto_discover(monkeypatch
|
||||
assert captured["query"].get("type") == "pulls"
|
||||
|
||||
mq.list_candidate_issues(auto_discover=False)
|
||||
assert captured["query"].get("labels") == "merge-queue"
|
||||
assert captured["query"].get("label") == "merge-queue"
|
||||
|
||||
|
||||
def _wire_ready_process_once(monkeypatch, *, issues, pr_payload, calls):
|
||||
|
||||
Reference in New Issue
Block a user