Skip to content

Commit 7b74682

Browse files
committed
Fix the resulting dictionary in gitea_api.PullRequest._get_label_ids()
1 parent a3738f6 commit 7b74682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osc/gitea_api/pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ def _get_label_ids(cls, conn: Connection, owner: str, repo: str) -> Dict[str, in
721721
response = conn.request("GET", url)
722722
labels = response.json()
723723
for label in labels:
724-
result[label["id"]] = label["name"]
724+
result[label["name"]] = label["id"]
725725
return result
726726

727727
@classmethod

0 commit comments

Comments
 (0)