diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java index 2a8d9a5dc..06440c3db 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java @@ -992,7 +992,7 @@ public void visitSources(SCMSourceObserver observer) throws IOException, Interru } for (GHRepository repo : repositories) { - if (!repo.getOwnerName().equals(repoOwner)) { + if (!repoOwner.equals(repo.getOwnerName())) { continue; // ignore repos in other orgs when using GHMyself }