[tests] filter out stale reviews in list_reviews
gofmt / Format checking (pull_request) Successful in 4s
Integration (Selective) / check (pull_request) Successful in 2s
gofmt / Linter and static analysis (pull_request) Successful in 58s
go-test-unit / go-test-unit (pull_request) Successful in 1m0s
Integration (Selective) / integration (pull_request) Failing after 10m47s
gofmt / Format checking (pull_request) Successful in 4s
Integration (Selective) / check (pull_request) Successful in 2s
gofmt / Linter and static analysis (pull_request) Successful in 58s
go-test-unit / go-test-unit (pull_request) Successful in 1m0s
Integration (Selective) / integration (pull_request) Failing after 10m47s
Fixes: git-workflow/tests#93
This commit is contained in:
@@ -845,7 +845,11 @@ index 00000000..{pkg_b_sha}
|
||||
owner, repo = repo_full_name.split("/")
|
||||
url = f"repos/{owner}/{repo}/pulls/{pr_number}/reviews"
|
||||
response, duration = self._request("GET", url)
|
||||
return response.json()
|
||||
result = []
|
||||
for r in response.json():
|
||||
if not r['stale']:
|
||||
result.append(r)
|
||||
return result
|
||||
|
||||
def get_requested_reviewers(self, repo_full_name: str, pr_number: int):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user