Skip to content

Commit

Permalink
fix(nested lists): nested list fix. Closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
rafinskipg committed Oct 11, 2014
1 parent 5afbb7a commit 2285551
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
16 changes: 12 additions & 4 deletions EXTENDEDCHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion tasks/git_changelog_generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});
});
Expand Down
4 changes: 2 additions & 2 deletions test/changelog.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand All @@ -83,4 +83,4 @@ describe('changelog.js', function() {
expect(exists_file).to.equal(true);
});
});
});
});

0 comments on commit 2285551

Please sign in to comment.