1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-30 19:12:15 +01:00

Implement '--reviewer' and '--review-state' options for 'git-obs pr list'

This commit is contained in:
2025-05-06 13:47:24 +02:00
parent 79657c0e22
commit aa8a48b79b
2 changed files with 43 additions and 0 deletions

View File

@@ -261,6 +261,17 @@ class PullRequest:
}
return conn.request("POST", url, json_data=json_data)
@classmethod
def get_reviews(
cls,
conn: Connection,
owner: str,
repo: str,
number: int,
):
url = conn.makeurl("repos", owner, repo, "pulls", str(number), "reviews")
return conn.request("GET", url)
@classmethod
def approve_review(
cls,