Repository navigation
init fails when calculated version equal to the current version - #11
Conversation
|
With the following background information:
We need to consider this scenario:
Essentially we're adding a CHANGELOG.md to the repo, but we're not bumping the version. Maybe this should/has to be a patch release in this case? |
|
@daveashworth My use-case for GSV would be (for existing projects):
|
|
This scenario is a bit tricky to handle automatically. The addition (or refresh) of a changelog in this scenario has to be accounted for in the changelog history itself since the repo version has to be bumped in order to push or publish. Initial thought was to give the user a choice on how they wanted to bump the version (patch, minor, major), but without the ability to label a commit with the version change (just PRs), future changelog generations would be out of sync. That commit would always be treated as a patch. That lead to the thought of making a separate commit for the new changelog with a message like, "CHANGELOG refresh", and then basically running |
|
So @ericclemmons, maybe in the scenario where the versions are equal (adjusting PRs until versions match up, or they do initially), |
|
I see where I was confused. Based on the docs, I expected that Explicitly throwing if other args are provided would be useful, but I'm cool with just bailing if someone does |
|
I think I'm happier with this now. If I'm also using Should be good to go @ericclemmons. |
| import debug from "debug"; | ||
|
|
||
| debug.enable("github-semantic-version:*"); | ||
|
|
There was a problem hiding this comment.
The one question I do have is since debug.js is imported across multiple files, I couldn't think of a great way to enable/disable based on the --debug flag. I removed this line and left it up to using the DEBUG=github-semantic-version:* environment variable before running the app. Is there a better way?
|
Man, that's some legit output! 👏 |
|
You good with me merging this now @ericclemmons ? |
|
Yep! Ship away!
On Mon, Dec 5, 2016, 2:49 PM Dave Ashworth ***@***.***> wrote:
You good with me merging this now @ericclemmons
<https://github.com/ericclemmons> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA7TjoF2LHBLlbtvXzkDpwOV148fJakks5rFHjUgaJpZM4K13kD>
.
--
- Eric Clemmons
|



Currently we get an error when
--initis run and the calculated version == current version. It should be allowed that the versions can be equal on this initial run.