davidrjonas / composer-lock-diff

See what has changed after a composer update
MIT License
276 stars 18 forks source link

Compare link does not work with dev version of dependencies #36

Open hmharsh opened 2 years ago

hmharsh commented 2 years ago

When we have composer package with version something like 0.0.x-dev then on composer update the output shown by ./vendor/bin/composer-lock-diff --md command is

| Production Changes                | From      | To        | Compare                                                                                      |
| eclipsegc/common-console          | 4949683   | 0.0.4     | [...](https://github.com/EclipseGc/CommonConsole/compare/4949683...0.0.4)                    |

Where the from column contain the commit ID instead of version, which is right but the link which is pointed in Compare column does not work as expected.

hmharsh commented 2 years ago

Is it possible to identify such release versions by looking form a dot . into the string of From column, to confirm if its actual release version or a commit-id, then accordingly either