Skip to content

Commit

Permalink
Merge pull request #60 from leanix/feature/CID-3293/filter-out-archiv…
Browse files Browse the repository at this point in the history
…ed-repos

CID-3293: Fix filter of archived repos
  • Loading branch information
mohamedlajmileanix authored Dec 17, 2024
2 parents 2c9af19 + a54955d commit e56a944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/graphql/GetRepositories.graphql
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e56a944

Please sign in to comment.