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

FIX Handle linkfield 3.0 branch #33

Merged

Conversation

emteknetnz
Copy link
Member

Issue silverstripe/.github#219

Linkfield 3.0 branch did not exist when the patch for not merge up linkfield v3 originally went in. Since then I created a 3.0 branch when I did the 3.0.0 stable tag

funcs.php Outdated
return version_compare($branch, $doNotMergeUpFromMajor, '>');
return version_compare($branch, "$doNotMergeUpFromMajor.0", '>');
Copy link
Member

Choose a reason for hiding this comment

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

I think we need to be a bit more sophisticated than this - we need to handle 3, 3.0, and any theoretical 3.x branches, since this is intended to be a general solution we can reuse in the future, not just for linkfield.

Copy link
Member

Choose a reason for hiding this comment

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

Unless I've misunderstood - in which case please add a test for 3.3 or something to validate that it will handle all those as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good spot, yes would have broken on 3.1. Have updated and added tests.

@emteknetnz emteknetnz force-pushed the pulls/1.0/linkfield3 branch from 2915612 to e254a45 Compare April 9, 2024 04:52
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM

@GuySartorelli GuySartorelli merged commit 5e6fcd9 into silverstripe:1 Apr 9, 2024
4 checks passed
@GuySartorelli GuySartorelli deleted the pulls/1.0/linkfield3 branch April 9, 2024 05:05
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.

2 participants