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
1.09k stars 34 forks source link

[Feature Request] Add link to new release notes too #389

Closed tedstriker closed 4 months ago

tedstriker commented 4 months ago

It would be nice and safe a few clicks, if the wud.link.template would not only generate a link to the deployed versions release notes but also to the release notes of the to-be-installed versions as well (if there's a discrepancy between deployed and latest available verison).

e.g. wud.link.template: https://github.com/fmartinou/whats-up-docker/releases/tag/$${major}.$${minor}.$${patch}

could result in

Link: https://github.com/fmartinou/whats-up-docker/releases/tag/6.3.0 (deployed) https://github.com/fmartinou/whats-up-docker/releases/tag/6.3.1 (latest release)

if a new release has been identified by wud

fmartinou commented 4 months ago

Hi,

The template is used to format links for both the current and the target versions:

{
   "linkTemplate":"https://github.com/redis/redis/releases/tag/${major}.${minor}.${patch}", <-- link template
    ...,
   "updateAvailable":true,
   "updateKind":{
      "kind":"tag",
      "localValue":"7.2.4-alpine",
      "remoteValue":"7.2.5-alpine",
      "semverDiff":"patch"
   },
   "link":"https://github.com/redis/redis/releases/tag/7.2.4", <-- link to current version
   "result":{
      "tag":"7.2.5-alpine",
      "link":"https://github.com/redis/redis/releases/tag/7.2.5"  <-- link to target version
   }
}

And the links are displayed in WUD UI as well: image

image

?

tedstriker commented 4 months ago

Oh my, I didn't realize it's on the update tab. Thanks for the clarification.