-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature fetch upstream and several bug fixes #64
Feature fetch upstream and several bug fixes #64
Conversation
README.md
Outdated
The `--promote` feature also allows for an optional command-line argument of a tag in the follow form: | ||
|
||
``` | ||
Usage: |
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.
This feels a little bit confusing having the Usage and Example. I understand you want to show that the v
is optional. Maybe remove the Usage section and have two examples (like you do for the Usage section).
Then either have one of the following...
- a comment at the end of the 2nd example saying that the
v
is optional
$ tag-release --promote 1.1.1-feature.2 # the "v" is optional
- update the paragraph above the examples saying the
v
is optional
The
--promote
feature also allows for an optional command-line argument (v
is optional) of a tag in the follow form:
specs/git.spec.js
Outdated
@@ -133,7 +134,7 @@ describe( "git", () => { | |||
expectedRunCommandArgs: { args: "tag --sort=v:refname", logMessage: "Getting list of tags" } | |||
}, | |||
shortLog: { | |||
expectedRunCommandArgs: { args: "--no-pager log --no-merges --date-order --pretty=format:'%s'", logMessage: "Parsing git log" } | |||
expectedRunCommandArgs: { args: "--no-pager log --no-merges --date-order --pretty=format:\"%s\"", logMessage: "Parsing git log" } |
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.
Could you please update this to be surrounded by `` and then use non-escaped double quotes inside? I feel that it reads cleaner than escaped characters. Thanks
specs/git.spec.js
Outdated
@@ -194,7 +195,7 @@ describe( "git", () => { | |||
}, | |||
generateRebaseCommitLog: { | |||
args: "v1.1.1-blah.0", | |||
expectedRunCommandArgs: { args: "log upstream/master..HEAD --pretty=format:'%h %s' --no-merges" } | |||
expectedRunCommandArgs: { args: "log upstream/master..HEAD --pretty=format:\"%h %s\" --no-merges" } |
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.
Same here
specs/git.spec.js
Outdated
it( "should call `git.shortLog` with the appropriate options when a tag is given", () => { | ||
return git.shortLog( "v1.2.3" ).then( () => { | ||
expect( git.runCommand ).toHaveBeenCalledTimes( 1 ); | ||
expect( git.runCommand ).toHaveBeenCalledWith( { args: "--no-pager log --no-merges --date-order --pretty=format:'%s' v1.2.3..", logMessage: "Parsing git log" } ); | ||
expect( git.runCommand ).toHaveBeenCalledWith( { args: "--no-pager log --no-merges --date-order --pretty=format:\"%s\" v1.2.3..", logMessage: "Parsing git log" } ); |
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.
and here :)
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.
Please take a look at the requested changes
a961307
to
e65d1b5
Compare
Short description of the work completed
Steps to test (if not obvious)
tag-release
from Windows. Should work as intended.tag-release -V
andtag-release --version
, you should now properly see the current version you are running oftag-release
For Reviewer Use Only
--help
andREADME.md
patch)