Closed stephen-cox closed 2 months ago
When there's a minor release value in the target branch (ie 1.8.x) determining the latest release fails unless there's already been a release for this value. We only need to get the latest release for the latest major version, which this now does.
Check PRs in Alert Banner.
With minor version in target: https://github.com/localgovdrupal/localgov_alert_banner/pull/357 With only major version in target: https://github.com/localgovdrupal/localgov_alert_banner/pull/358
What does this change?
When there's a minor release value in the target branch (ie 1.8.x) determining the latest release fails unless there's already been a release for this value. We only need to get the latest release for the latest major version, which this now does.
How to test
Check PRs in Alert Banner.
With minor version in target: https://github.com/localgovdrupal/localgov_alert_banner/pull/357 With only major version in target: https://github.com/localgovdrupal/localgov_alert_banner/pull/358