Ignore tags of non stable releases when generating changelogs
This came up during review of https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54832: we create tags for RCs. When leaving out the `to` option when generating a changelog, we don't filter out any pre-release tags. As a result, generating the changelog for a new minor release would result in the `to` argument being set to the last RC tag; not the last tag of the previous patch release. To fix this, we need to skip pre release/beta/etc tags.
issue