DefiantLabs / cosmos-upgrades

a tool to search for scheduled cosmos upgrades
MIT License
4 stars 2 forks source link

Use plan name and search on repo git tags to find potential versions #18

Closed pharr117 closed 1 year ago

pharr117 commented 1 year ago

We currently do a naive regex search on the string dump of the entire plan when trying to find version numbers. We should attempt to do the following instead:

  1. Get the plan name, these are usually of the form "v"
  2. Search the git tags in the associated chain repo
  3. Find all matching tags that have the plan name version number in them
  4. Return the "best" match (or the closest match that can be made)