fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
921 stars 29 forks source link

Link template drops leading zeros in semver placeholders #367

Open jrbarronumd opened 3 months ago

jrbarronumd commented 3 months ago

Slowly adding containers to my watchers, and loving this tool - Thank you for sharing!

I'm seeing an issue with the link template on one of my containers. It seems to be working correctly recognizing my container version, and the current release of 2024.02.2. My template and resulting link are below. Not sure if there's something I should be doing differently, or if it is treating the placeholders like integers instead of strings, and dropping the leading zero.

Template: https://github.com/pi-hole/docker-pi-hole/releases/${major}.${minor}.${patch}

Link: https://github.com/pi-hole/docker-pi-hole/releases/2024.2.2

But the link should be: https://github.com/pi-hole/docker-pi-hole/releases/2024.02.2

Big-Gremlin commented 3 months ago

Same problem with jdownloader and bookstack

https://github.com/BookStackApp/BookStack/releases/tag/v24.02.3 https://github.com/jlesage/docker-jdownloader-2/releases/tag/v24.01.1

@jrbarronumd as a workaround for the links you can use #{raw} instead of ${major}.${minor}.${patch}