Add find_versions function that fetches commits and tags