Skip to content

Commit

Permalink
CID-3293: Fix filter of archived repos
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedlajmileanix committed Dec 13, 2024
1 parent 7cc1c79 commit a54955d
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 a54955d

Please sign in to comment.