Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support git hash in [nexus] SNAPSHOT version #6369

Merged
merged 2 commits into from Apr 9, 2021

Conversation

seglo
Copy link
Contributor

@seglo seglo commented Apr 8, 2021

The SNAPSHOT version pre-check wouldn't match a SNAPSHOT version that includes a hash (git hash, a default convention when using sbt-dynver). Incidentally, it would match versions with hashes that end with 0-9, but not with a-f.

There was a test in nexus.tester.js that tested a version with a hash that passed because the hash ended with 0-9.

i.e.)

Match

7.0.1+19-8844c122-SNAPSHOT

No match

7.0.1+19-8844c12a-SNAPSHOT

@shields-ci
Copy link

shields-ci commented Apr 8, 2021

Messages
📖 ✨ Thanks for your contribution to Shields, @seglo!

Generated by 🚫 dangerJS against 7a5e319

ignasi35
ignasi35 previously approved these changes Apr 8, 2021
@PyvesB PyvesB added the service-badge Accepted and actionable changes, features, and bugs label Apr 8, 2021
Copy link
Member

@PyvesB PyvesB left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @seglo! One small observation, though I would by no means consider it a blocker. 😉

services/nexus/nexus-version.js Outdated Show resolved Hide resolved
@PyvesB PyvesB merged commit 99b676a into badges:master Apr 9, 2021
@PyvesB
Copy link
Member

PyvesB commented Apr 9, 2021

This improvement has been deployed to production! 🍾

@seglo
Copy link
Contributor Author

seglo commented Apr 9, 2021

Confirmed it works. Thanks!

@seglo seglo deleted the seglo/nexus-snapshot-hash-version branch April 9, 2021 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants