diff --git a/CHANGELOG.md b/CHANGELOG.md index 9607c9a..c143111 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,13 +25,18 @@ ([121b9928](https://github.com/rafinskipg/git-changelog/commits/121b99285d2a04f9159951fa0e3f849d0d618fef)) - **bootstrap:** creating initial structure ([dea45d68](https://github.com/rafinskipg/git-changelog/commits/dea45d68ce9555e876680bf7c0778add2f367a30)) -- **grunt-plugin:** Now it is ready to be a grunt plugin +- **grunt-plugin:** + - Commit for research purposes + ([5afbb7a9](https://github.com/rafinskipg/git-changelog/commits/5afbb7a95c9f0e985f78666e7e231967524a8928)) + - Now it is ready to be a grunt plugin ([6422e055](https://github.com/rafinskipg/git-changelog/commits/6422e0552b30f6e94d11b03310a23c1342aa5965)) ## Docs -- Added docs- **readme:** Final readme Fixes #1 Closes #1 +- Added docs +- **readme:** Final readme Fixes #1 Closes #1 + ## Breaking Changes diff --git a/EXTENDEDCHANGELOG.md b/EXTENDEDCHANGELOG.md index b0a9ec6..47c29c8 100644 --- a/EXTENDEDCHANGELOG.md +++ b/EXTENDEDCHANGELOG.md @@ -25,18 +25,26 @@ ([121b9928](https://github.com/rafinskipg/git-changelog/commits/121b99285d2a04f9159951fa0e3f849d0d618fef)) - **bootstrap:** creating initial structure ([dea45d68](https://github.com/rafinskipg/git-changelog/commits/dea45d68ce9555e876680bf7c0778add2f367a30)) -- **grunt-plugin:** Now it is ready to be a grunt plugin +- **grunt-plugin:** + - Commit for research purposes + ([5afbb7a9](https://github.com/rafinskipg/git-changelog/commits/5afbb7a95c9f0e985f78666e7e231967524a8928)) + - Now it is ready to be a grunt plugin ([6422e055](https://github.com/rafinskipg/git-changelog/commits/6422e0552b30f6e94d11b03310a23c1342aa5965)) ## Refactor -- **delete:** deleted some files- **docs:** - - Angular document commits - Added docs +- **delete:** deleted some files +- **docs:** + - Angular document commits + - Added docs + ## Docs -- Added docs- **readme:** Final readme Fixes #1 Closes #1 +- Added docs +- **readme:** Final readme Fixes #1 Closes #1 + ## Breaking Changes diff --git a/README.md b/README.md index 89c3461..356f817 100644 --- a/README.md +++ b/README.md @@ -30,12 +30,13 @@ grunt.initConfig({ git_changelog: { minimal: { options: { - file: 'CHANGELOG.md', + file: 'https://github.com/rafinskipg/git-changelog', appName : 'Git changelog' } }, extended: { options: { + repo_url: 'https://github.com/rafinskipg/git-changelog', appName : 'Git changelog extended', file : 'EXTENDEDCHANGELOG.md', grep_commits: '^fix|^feat|^docs|^refactor|^chore|BREAKING' @@ -48,7 +49,7 @@ grunt.initConfig({ ### Options | Defaults * **branch_name** : The name of the branch. Defaults to ` ` -* **repo_url**: The version of the project. Defaults to ` ` +* **repo_url**: The url of the project. For issues and commits links. Defaults to ` ` * **version**: The version of the project. Defaults to ` `, * **file**: The name of the file that will be generated. Defaults to `CHANGELOG.md`, * **appName** : The name of the projcect. Defaults to `My App - Changelog` diff --git a/tasks/git_changelog_generate.js b/tasks/git_changelog_generate.js index 170053d..d4175d8 100644 --- a/tasks/git_changelog_generate.js +++ b/tasks/git_changelog_generate.js @@ -146,7 +146,7 @@ var printSection = function(stream, title, section, printCommitLinks) { } stream.write(')\n'); } else { - stream.write(util.format('%s %s', prefix, commit.subject)); + stream.write(util.format('%s %s\n', prefix, commit.subject)); } }); }); diff --git a/test/changelog.spec.js b/test/changelog.spec.js index 7b1e65d..bd3ac8e 100644 --- a/test/changelog.spec.js +++ b/test/changelog.spec.js @@ -66,7 +66,7 @@ describe('changelog.js', function() { 'bla bla bla\n\n')); } - console.log(JSON.stringify(ch.organizeCommitsInSections(commits, sections))); + sections = ch.organizeCommitsInSections(commits, sections); expect(sections.fix.myModule.length).to.equal(10); }); @@ -83,4 +83,4 @@ describe('changelog.js', function() { expect(exists_file).to.equal(true); }); }); -}); +}); \ No newline at end of file