Skip to content

chore: check for already splitted versions - #120

Closed
Jonas Elfering (keulinho) wants to merge 1 commit into
mainfrom
chore/check-already-split-versions
Closed

Jonas Elfering (keulinho) wants to merge 1 commit into
mainfrom
chore/check-already-split-versions

Conversation

@keulinho

Copy link
Copy Markdown
Contributor

relying on dates to determine next version can be brittle and there might be cases where we do not use our regular schedule

instead i try to figure the next versions based on the release branches that already exist

I'm not sure if it is already working as expected, but i thought when we know our branching strategy we should be able to figure out in which state we are

one important thing that we should be able to figure out: when the final branch off for a release branch did happen we already need to update the next version so the next version should always contain the version that trunk is representing

Assumption was that we create a new release branch for the upcoming release as soon as we finally branch of for the current release, that was mainly based on the fact that even though we are still preparing 6.7.5.0 release, there is already a 6.7.6.x release branch

Happy to hear your thoughts, how we could achieve this the best

get_tags() {
git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags https://github.com/shopware/shopware 2>/dev/null |
cut --delimiter='/' --fields=3 | grep -v -i -E '(dev|beta|alpha)'
cut -d '/' -f 3 | grep -v -i -E '(dev|beta|alpha)'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the other format was not compatible with the cut implementation i had installed, so i assume this should have broader compatibility

@keulinho

Copy link
Copy Markdown
Contributor Author

With something like this where we have a defined point in time when the last scheduled branch split for a new minor version happened we can also execute the updateMilestonesOnRelease automation, and not only do that on actual release https://github.com/shopware/gh-project-automation/blob/main/src/services/milestone.ts#L70C23-L70C48

@keulinho

Copy link
Copy Markdown
Contributor Author

will close this for now, likely needs a bigger fix

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