Skip to content

Fix: changelog commits without body #3

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

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Conversation

aichbauer
Copy link
Owner

No description provided.

@coveralls
Copy link

coveralls commented Jun 26, 2017

Coverage Status

Coverage remained the same at 96.203% when pulling 1159938 on fix/changelogBody into 656ead8 on master.

Copy link
Collaborator

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -22,7 +22,7 @@ const writeToFile = (commits = [], version, exists) => {
commits.forEach((commithash) => {
const commitInfo = gitCommitInfo({ commit: commithash, cwd });

stream.write(`* ${commitInfo.shortHash} ${commitInfo.message} (${commitInfo.author})\n`);
stream.write(`* ${commitInfo.shortHash} ${commitInfo.message.split('\n')[0]} (${commitInfo.author})\n`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

The only thing what would not work is, if the commit message is longer than 72 characters. GitHub will automatically make a break. But it is hard to detect except if its a squash in a PR.

@aichbauer aichbauer merged commit 1a02c2c into master Jun 26, 2017
@aichbauer aichbauer deleted the fix/changelogBody 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.

3 participants