Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use tag pattern to filter out pre-releases #125

Merged
merged 2 commits into from
Dec 1, 2023
Merged

ci: use tag pattern to filter out pre-releases #125

merged 2 commits into from
Dec 1, 2023

Conversation

wangl-cc
Copy link
Member

So far, we have been using the compare_base output from the parse_version.sh script to determine the range of commits to be included in the changelog. This not works well,
because the pre-release also splits the commits into multiple groups. For example, if the last stable release is v0.1.0, and last beta release is v0.1.1-beta.1, then the changelog from head will include all commits from v0.1.0 to head, but they will be split into two groups: v0.1.0..v0.1.1-beta.1 and v0.1.1-beta.1..HEAD. This is not what we want.

So instead of using compare_base, we use the tag_pattern to filter out pre-releases. This will ensure that the changelog compares to the last stable release, and they are grouped into a single group.

So far, we have been using the `compare_base` output from the
`parse_version.sh` script to determine the range of commits to be
included in the changelog. This not works well,
because the pre-release also splits the commits into multiple groups.
For example, if the last stable release is `v0.1.0`,
and last beta release is `v0.1.1-beta.1`, then the changelog from head
will include all commits from `v0.1.0` to head, but
they will be split into two groups: `v0.1.0..v0.1.1-beta.1` and
`v0.1.1-beta.1..HEAD`. This is not what we want.

So instead of using `compare_base`, we use the `tag_pattern` to filter
out pre-releases. This will ensure that the changelog compares to the
last stable release, and they are grouped into a single group.
If release channel is beta, don't update alpha version info, because
alpha version is nightly, once a beta version is installed, alpha
version will be considered as outdated.
@wangl-cc wangl-cc merged commit 867398d into main Dec 1, 2023
11 checks passed
@wangl-cc wangl-cc deleted the ci/release branch December 1, 2023 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant