localgovdrupal / localgov_shared_workflows

GNU General Public License v2.0
0 stars 0 forks source link

Fix latest release lookup when target branch contains minor release #4

Closed stephen-cox closed 2 months ago

stephen-cox commented 2 months ago

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