Skip to content

Commit

Permalink
Added ownership for CodeReference Stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
handstandsam committed Nov 11, 2024
1 parent ff70719 commit b40ac1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ sealed interface Stat {
val filePath: String,
val startLine: Int,
val endLine: Int,
val code: String? = null,
val extras: Map<ExtraKey, String> = emptyMap(),
val code: String? = null,
val owner: OwnerName? = null,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ fun CodeReferencesComposable(
val listOfExtraValues: List<String> = extraKeys.map { key -> it.codeReference.extras[key] ?: "" }
listOf(
it.module,
it.owner,
it.codeReference.owner ?: (it.owner + " (Module Owner)"),
it.codeReference.toHrefLink(projectMetadata!!, false),
it.codeReference.code ?: ""
) + listOfExtraValues
Expand Down

0 comments on commit b40ac1d

Please sign in to comment.