This change adapts the detection of the response of the /versions API
to check any of the existing formats for a content rather than only
checking the version.diff_summary field.
This will help to be able to return an empty array [] when asking
for the --format json (since we fixed the API return values last
week in https://github.com/bump-sh/bump/pull/5703)
This change adapts the detection of the response of the /versions API to check any of the existing formats for a content rather than only checking the
version.diff_summary
field.This will help to be able to return an empty array
[]
when asking for the--format json
(since we fixed the API return values last week in https://github.com/bump-sh/bump/pull/5703)