0

I am using PyGithub to run tests on every pull request in a repository.
I'd like to only run tests on pull requests that have passed my CI.
Is there a way to query the results of the CI in Python?
For example something like:

for pull in repository.get_pulls():
    if pull.get_check().status == True:
        #run test on pull

(something like get_check() is what I'm looking for)

Thanks so much!