mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Use right variable in both get_check_runs() (#1889)
Both CheckSuite and Commit have a get_check_runs() method that allows filtering by a string -- the original code did not check for it, and never added it to the query string since it checked the wrong variable. Check the right variable and re-record the replay data. Fixes #1843
This commit is contained in:
@@ -193,7 +193,7 @@ class CheckSuite(github.GithubObject.CompletableGithubObject):
|
||||
url_parameters["check_name"] = check_name
|
||||
if status is not github.GithubObject.NotSet:
|
||||
url_parameters["status"] = status
|
||||
if status is not github.GithubObject.NotSet:
|
||||
if filter is not github.GithubObject.NotSet:
|
||||
url_parameters["filter"] = filter
|
||||
return github.PaginatedList.PaginatedList(
|
||||
github.CheckRun.CheckRun,
|
||||
|
||||
+1
-1
@@ -281,7 +281,7 @@ class Commit(github.GithubObject.CompletableGithubObject):
|
||||
url_parameters["check_name"] = check_name
|
||||
if status is not github.GithubObject.NotSet:
|
||||
url_parameters["status"] = status
|
||||
if status is not github.GithubObject.NotSet:
|
||||
if filter is not github.GithubObject.NotSet:
|
||||
url_parameters["filter"] = filter
|
||||
return github.PaginatedList.PaginatedList(
|
||||
github.CheckRun.CheckRun,
|
||||
|
||||
Reference in New Issue
Block a user