Skip to content

Commit

Permalink
Merge pull request #19 from leanix/feature/CID-2872/during-first-scan…
Browse files Browse the repository at this point in the history
…-do-not-save-archived-repositories

CID-2872: Change RepositoryDto attribute from isArchived to archived to support backend.
  • Loading branch information
mohamedlajmileanix authored Aug 15, 2024
2 parents 99f2a8a + 17fa936 commit 38dc25e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data class RepositoryDto(
val organizationName: String,
val description: String?,
val url: String,
val isArchived: Boolean,
val archived: Boolean,
val visibility: RepositoryVisibility,
val updatedAt: String,
val languages: List<String>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class GitHubGraphQLService(
organizationName = it.owner.login,
description = it.description,
url = it.url,
isArchived = it.isArchived,
archived = it.isArchived,
visibility = it.visibility,
updatedAt = it.updatedAt,
languages = it.languages!!.nodes!!.map { language -> language!!.name },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class GitHubScanningServiceTest {
organizationName = "testOrg",
description = "A test repository",
url = "https://github.com/testRepo",
isArchived = false,
archived = false,
visibility = RepositoryVisibility.PUBLIC,
updatedAt = "2024-01-01T00:00:00Z",
languages = listOf("Kotlin", "Java"),
Expand Down

0 comments on commit 38dc25e

Please sign in to comment.