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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user