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

Chore: Only reset to upstream/master for major/minor releases #750

Merged
merged 6 commits into from
Mar 30, 2018

Conversation

pramodsum
Copy link
Contributor

This will prevent patch releases from resetting to upstream/master. Instead, it will reset to the previous version of Preview (if available).

TODO: replicate the same logic in BoxAnnotations

Copy of #745

@boxcla
Copy link

boxcla commented Mar 28, 2018

Verified that @pramodsum has signed the CLA. Thanks for the pull request!

@pramodsum pramodsum requested a review from tonyjin March 29, 2018 05:36
fi

# Reset and fetch upstream with tags
reset_tags || return 1;
Copy link
Contributor

@DanDeMicco DanDeMicco Mar 29, 2018

Choose a reason for hiding this comment

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

If you end up staying with this approach, I would log a message to the teminal saying what you did

build/release.sh Outdated
@@ -44,6 +78,14 @@ increment_version() {
# Old version
OLD_VERSION=$(./build/current_version.sh)

# The master branch should not match the previous release tag
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't necessarily the master branch right? If we're coming from a patch this would be some detached state.

@pramodsum pramodsum merged commit aa2b8ab into box:master Mar 30, 2018
pramodsum added a commit to pramodsum/box-annotations that referenced this pull request Apr 3, 2018
- This will prevent patch releases from resetting to upstream/master. Instead, it will reset to the previous version of Preview (if
available).
- See box/box-content-preview#750
pramodsum added a commit to box/box-annotations that referenced this pull request Apr 5, 2018
- This will prevent patch releases from resetting to upstream/master. Instead, it will reset to the previous version of Preview (if
available).
- See box/box-content-preview#750
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.

4 participants