diff --git a/src/main/kotlin/net/leanix/githubagent/services/GitHubScanningService.kt b/src/main/kotlin/net/leanix/githubagent/services/GitHubScanningService.kt index 7b5e3b2..c12a62a 100644 --- a/src/main/kotlin/net/leanix/githubagent/services/GitHubScanningService.kt +++ b/src/main/kotlin/net/leanix/githubagent/services/GitHubScanningService.kt @@ -86,7 +86,7 @@ class GitHubScanningService( ) webSocketService.sendMessage( "${cachingService.get("runId")}/repositories", - repositoriesPage.repositories + repositoriesPage.repositories.filter { !it.archived } ) repositories.addAll(repositoriesPage.repositories) cursor = repositoriesPage.cursor diff --git a/src/main/resources/graphql/GetRepositories.graphql b/src/main/resources/graphql/GetRepositories.graphql index 332d6e3..d07b223 100644 --- a/src/main/resources/graphql/GetRepositories.graphql +++ b/src/main/resources/graphql/GetRepositories.graphql @@ -1,6 +1,6 @@ query GetRepositories($pageCount: Int!, $cursor: String) { viewer { - repositories(isArchived:false, first: $pageCount, after: $cursor) { + repositories(first: $pageCount, after: $cursor) { pageInfo { endCursor hasNextPage