lilydjwg / nvchecker

New version checker for software releases
MIT License
425 stars 68 forks source link

[feature request] Return an URL representing the latest version #238

Closed dpeukert closed 11 months ago

dpeukert commented 11 months ago

It would be nice to have access to an URL representing the latest version (or the software itself where not possible) included in the returned data in an url field.

A couple of example values:

https://github.com/lilydjwg/nvchecker/releases/tag/v2.12
https://github.com/lilydjwg/nvchecker/commit/b8c0e8a6b3139e1975ea33cfde4dc07ea3ffc251
https://aur.archlinux.org/packages/nvchecker-git
https://www.npmjs.com/package/electron/v/26.3.0
lilydjwg commented 11 months ago

There needs to be support in each nvchecker source, which would be quite a lot of work. There was also a request to return a download URL but that request disappeared.

How can this be used?

dpeukert commented 11 months ago

There needs to be support in each nvchecker source, which would be quite a lot of work.

If the basic scaffolding is implemented, I'm willing to help out with the source implementations.

How can this be used?

My usecase as a package maintainer would be to include a link to the new version in the notifications I send to myself based on nvchecker events, so that I wouldn't need to look up the details (changelog, link to a diff etc) of a release manually.

lilydjwg commented 11 months ago

I've implemented this for the PyPI and AUR sources. Could you take a look?

dpeukert commented 11 months ago

Thank you for implementing this, it works great! I'll get to work on implementing support in more sources.