When a forward-merge commit message contains a version pattern like 2.4.x, the hook is choosing the furthest milestone that matches the pattern instead of the nearest.