main.kotlin.org.virtuslab.bazelsteward.app.BazelStewardGitBranch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bazel-steward Show documentation
Show all versions of bazel-steward Show documentation
Bazel Steward is a bot that helps you keep your library dependencies, Bazel and Bazel rules up-to-date.
package org.virtuslab.bazelsteward.app
import org.virtuslab.bazelsteward.core.GitBranch
import org.virtuslab.bazelsteward.core.library.LibraryId
import org.virtuslab.bazelsteward.core.library.Version
data class BazelStewardGitBranch(val libraryId: LibraryId, val version: Version) {
val prefix = "$bazelPrefix/${sanitizeLibraryId(libraryId)}/"
val gitBranch = GitBranch(prefix + version)
companion object {
const val bazelPrefix = "bazel-steward"
private fun sanitizeLibraryId(libraryId: LibraryId) = libraryId.name.replace(":", "/")
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy