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

Command: "test" or "assert" to assert no major, minor, patch changes #26

Open
ScreamingDev opened this issue Dec 2, 2015 · 0 comments
Milestone

Comments

@ScreamingDev
Copy link
Owner

A new command asserts that no major, minor or patch changed were made:

# assert that this is a major change (must contain at least on major change)
bin/phpsemver assert:major --strict 1.0.0 2.0.0

# assert that there is no major change (minor or lower allowed)
bin/phpsemver assert:minor 1.0.0 1.1.0

# assert that there is no minor change (minor or lower allowed)
bin/phpsemver assert:patch 1.0.0 1.0.1

Strict mode is disabled by default because this is a tool that might guess wrong.
Enabling strict mode means that at least one major, minor, patch change must be found.

@ScreamingDev ScreamingDev added this to the Backlog milestone Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant