-
Notifications
You must be signed in to change notification settings - Fork 161
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
feat: adding prerelease version increments #397
Merged
eed3si9n
merged 17 commits into
sbt:master
from
Andrapyre:feat-prerelease-version-increments-round2
Jan 22, 2024
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0fda4b7
adding feature with testing
Andrapyre 26af57a
adding public type definitions and reverting private val declaration
Andrapyre 0e60558
deprecating .withoutQualifier
Andrapyre 31046c7
adding note to readme
Andrapyre ffd93a4
Reverting scala version change
Andrapyre 854c91d
updating readme for .withoutQualifier deprecation
Andrapyre b282eb1
revert and restore default
xuwei-k 52d0947
Revert "feat: support prerelease version increments (#393)"
xuwei-k 15460a5
Revert "Revert "feat: support prerelease version increments (#393)""
Andrapyre a59a347
ignoring bsp files
Andrapyre fb4e3a1
adding fix and updating docs
Andrapyre a1bee37
final changes
Andrapyre 32f9c07
adding NextStable with tests and removing warnings
Andrapyre 5117129
removing scripted batch mode
Andrapyre 0980d19
Merge branch 'master' into feat-prerelease-version-increments-round2
Andrapyre 3e2a321
renaming and .string deprecation
Andrapyre 79d8f3a
final changes after self review
Andrapyre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ target | |
project/target | ||
.idea | ||
.idea_modules | ||
.bsp | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,41 @@ | ||
$ exec git init . | ||
# Test Suite Preparation | ||
$ exec git init . | ||
> update | ||
$ exec git add . | ||
$ exec git commit -m init | ||
> reload | ||
|
||
> update | ||
# SCENARIO: When no release versions are specified in the release command | ||
# TEST: Should fail to release if "with-defaults" is not specified | ||
-> release | ||
|
||
$ exec git add . | ||
$ exec git commit -m init | ||
# TEST: Should succeed if "with-defaults" is specified | ||
> release with-defaults | ||
|
||
> reload | ||
# SCENARIO: When default bumping strategy is used | ||
# Test Scenario Preparation | ||
> 'release release-version 0.9.9 next-version 1.0.0-RC1-SNAPSHOT' | ||
> reload | ||
> checkContentsOfVersionSbt 1.0.0-RC1-SNAPSHOT | ||
|
||
# TEST: Snapshot version should be correctly set | ||
> release with-defaults | ||
> checkContentsOfVersionSbt 1.0.0-RC2-SNAPSHOT | ||
|
||
# TEST: Release version should be correctly set | ||
$ exec git reset --hard HEAD~1 | ||
> reload | ||
> checkContentsOfVersionSbt 1.0.0-RC1 | ||
|
||
# SCENARIO: When NextStable bumping strategy is used | ||
# TEST: Snapshot version should be correctly set | ||
$ exec git reset --hard HEAD~1 | ||
> set releaseVersionBump := sbtrelease.Version.Bump.NextStable | ||
> release with-defaults | ||
> checkContentsOfVersionSbt 1.0.1-SNAPSHOT | ||
|
||
# TEST: Release version should be correctly set | ||
$ exec git reset --hard HEAD~1 | ||
> reload | ||
> checkContentsOfVersionSbt 1.0.0 | ||
|
||
-> release | ||
> release with-defaults |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally speaking we are fine with merging
.gitignore
changes, but regardless, I'll say: you'll probably want to add.bsp
to your global gitignore, so then you won't need to submit this change to every repository that you contribute to.