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

Fix: latest tagged commit to string #4

Merged
merged 2 commits into from
Jun 27, 2017
Merged

Fix: latest tagged commit to string #4

merged 2 commits into from
Jun 27, 2017

Conversation

aichbauer
Copy link
Owner

No description provided.

@aichbauer aichbauer requested a review from JPeer264 June 26, 2017 14:24
@coveralls
Copy link

coveralls commented Jun 26, 2017

Coverage Status

Coverage remained the same at 96.203% when pulling 4d7c9bc on fix/taggedCommits into 1a02c2c on master.

lib/cli.js Outdated
@@ -27,7 +27,8 @@ updateNotifier({ pkg }).notify();

const cli = () => {
const cwd = process.cwd();
const latestTaggedCommit = taggedCommit({ path: cwd });
let latestTaggedCommit = taggedCommit({ path: cwd }); // returns an array
latestTaggedCommit = latestTaggedCommit.length === 0 ? '' : latestTaggedCommit[0];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the naming is quite confusing. First it is an array, and then it is just one commit? I would prefer to not reassign the variables and write it like const latestTaggedCommits and const latestTaggedCommit. But it is also good as is.

Copy link
Owner Author

Choose a reason for hiding this comment

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

you are right 👍 thanks

@coveralls
Copy link

coveralls commented Jun 26, 2017

Coverage Status

Coverage remained the same at 96.203% when pulling 8310840 on fix/taggedCommits into 1a02c2c on master.

@JPeer264 JPeer264 merged commit 9cf0139 into master Jun 27, 2017
@aichbauer aichbauer deleted the fix/taggedCommits branch June 27, 2017 09:11
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.

None yet

3 participants