Add initial filter check when finding PRs candidates

This change should speed up the update-submodule command and avoid querying all the pull requests of each repository.