Skip to content

Conversation

@rli
Copy link
Contributor

@rli rli commented Dec 10, 2024

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rli rli requested a review from a team as a code owner December 10, 2024 19:54
override fun obtain(): String =
try {
val git = Git.open(parameters.gitRootDir.get())
val currentShortHash = git.repository.findRef("HEAD").objectId.abbreviate(7).name()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we assign 7 to a variable?

@rli rli closed this Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants