Skip to content

Commit

Permalink
fix(template): Fixes missing space in version_name output in template
Browse files Browse the repository at this point in the history
Closes #72.
  • Loading branch information
rafinskipg committed Jan 6, 2017
1 parent d7d3785 commit f494f4a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 38 deletions.
31 changes: 0 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,6 @@ _Git changelog is a utility tool for generating changelogs. It is free and opens



## Bug Fixes
- fix error messages
([ee5068bf](https://github.com/rafinskipg/git-changelog/commit/ee5068bffdbb9c0e45c8ce9ce0c2f790440f19e3))

- **git tag**
- get latest tag, regardless of branch for workflows that rely on git-flow releases
([48800306](https://github.com/rafinskipg/git-changelog/commit/48800306fa5ac19b7e9a4c6d7f2f432ee8ae4d84))

- **options**
- Use version_name instead of version
([43fdac85](https://github.com/rafinskipg/git-changelog/commit/43fdac855bfd2f67a43acc93ecc8ef2e7a81f45c))




## Features

- **template**
- Load default template if no custom template is found
([41d5128b](https://github.com/rafinskipg/git-changelog/commit/41d5128b922efe3ced883a37bb4e170410160f4f))




## Documentation
- updating documentation with template info
([70fb9774](https://github.com/rafinskipg/git-changelog/commit/70fb97742ea2182a9d25ca92d6eeab081b44cc63))





---
<sub><sup>*Generated with [git-changelog](https://github.com/rafinskipg/git-changelog). If you have any problems or suggestions, create an issue.* :) **Thanks** </sub></sup>
14 changes: 14 additions & 0 deletions EXTENDEDCHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ _Git changelog is a utility tool for generating changelogs. It is free and opens
- Restores versionName in CLI
([1d97f952](https://github.com/rafinskipg/git-changelog/commit/1d97f952bd5d37f67c1febdf161f4ce9b310eebf))

- **travis**
- Removed 0.12 nodejs version, addd 7.3.0
([18190836](https://github.com/rafinskipg/git-changelog/commit/1819083690e70e0af28d0c155b6fa67cbeb1dfb3))




Expand Down Expand Up @@ -118,6 +122,8 @@ _Git changelog is a utility tool for generating changelogs. It is free and opens
([e0ba50c0](https://github.com/rafinskipg/git-changelog/commit/e0ba50c0bb0b13e9b39a59b8f4dda96e86d55644))

- **readme**
- Updated readme
([2d7b1762](https://github.com/rafinskipg/git-changelog/commit/2d7b17625b9783532ee9ba655651cf8d475aa4ce))
- Unuseful commit
([4373f472](https://github.com/rafinskipg/git-changelog/commit/4373f4726eedad6d450c8255f5e57036a3e5e223))
- fix link to the `.changelogrc` section
Expand Down Expand Up @@ -180,6 +186,10 @@ _Git changelog is a utility tool for generating changelogs. It is free and opens

## Style

- **jshint**
- Fixed style
([217bdf58](https://github.com/rafinskipg/git-changelog/commit/217bdf588729e8dba5739bd6edb424523e48b001))

- **message**
- Added a message on the changelog for referencing the github
([d20031a9](https://github.com/rafinskipg/git-changelog/commit/d20031a9dc6fd92cba205903b2fd9d25feae6ea7))
Expand Down Expand Up @@ -321,6 +331,8 @@ _Git changelog is a utility tool for generating changelogs. It is free and opens
([b3f1e44a](https://github.com/rafinskipg/git-changelog/commit/b3f1e44a900b00bda1facaee5354ba1ff58166aa))

- **release**
- 1.1.0 codename(christmas-templates)
([d7d37854](https://github.com/rafinskipg/git-changelog/commit/d7d37854f9bcf6a885be278d05bf78651d493b1d))
- 1.0.0 codename(magnificent-goldman)
([6b836fbe](https://github.com/rafinskipg/git-changelog/commit/6b836fbea9405727bfc6d8e83349ea5cf8965b05))
- 0.1.8 codename(furious-stallman)
Expand All @@ -343,6 +355,8 @@ _Git changelog is a utility tool for generating changelogs. It is free and opens


## Pull requests merged
- Merge pull request #70 from rafinskipg/templating
([5e60232c](https://github.com/rafinskipg/git-changelog/commit/5e60232cf92b66cf50f64f3a7734de98fe2637e7))
- Merge pull request #60 from seivan/feature/latest_tag_regardless_of_branch
([1ff50d0d](https://github.com/rafinskipg/git-changelog/commit/1ff50d0dc03f8c0db9961c034945c3ef8f4268f7))
- Merge pull request #58 from olamothe/master
Expand Down
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function(grunt) {
intro: 'This changelog is from the previous tag',
file: 'output/tag1.md',
logo : 'https://github.com/rafinskipg/git-changelog/raw/master/images/git-changelog-logo.png',
version : 'squeezy potatoe',
version_name : 'squeezy potatoe',
tag: 'v0.0.1',
debug: true,
sections: [
Expand All @@ -68,7 +68,7 @@ module.exports = function(grunt) {
file: 'output/customTemplate.md',
template: 'templates/template_two.md',
logo : 'https://github.com/rafinskipg/git-changelog/raw/master/images/git-changelog-logo.png',
version : 'squeezy potatoe',
version_name : 'squeezy potatoe',
tag: 'v0.0.1',
debug: true
}
Expand Down
10 changes: 7 additions & 3 deletions output/customTemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

_This changelog is generated with a custom template_

## v0.0.1 ( Sun Dec 25 2016 13:33:22 GMT+0100 (CET) )
## squeezy potatoe v0.0.1 ( Fri Jan 06 2017 13:50:31 GMT+0100 (CET) )


## Bug Fixes
Expand Down Expand Up @@ -33,6 +33,8 @@ _This changelog is generated with a custom template_
- move q to dependancies since it is required to run (257119cf2bb6d8f341a5d65a2f47bcf803dff205)
- **params**
- Restores versionName in CLI (1d97f952bd5d37f67c1febdf161f4ce9b310eebf)
- **travis**
- Removed 0.12 nodejs version, addd 7.3.0 (1819083690e70e0af28d0c155b6fa67cbeb1dfb3)



Expand Down Expand Up @@ -63,7 +65,7 @@ _This changelog is generated with a custom template_
- added documentation for explaining the commit message (d516c2fb464072fc1f4c86ec71a910eeab3e830c
- Added docs (e0ba50c0bb0b13e9b39a59b8f4dda96e86d55644
- **readme**
- Unuseful commit (4373f4726eedad6d450c8255f5e57036a3e5e223) - fix link to the `.changelogrc` section (2975171d89e1823253399bbe87a184e9164e9799) - Follow proper style in example commits (6fef01ba8a71bb5cd779ddb84f52b8f75296618d) - Reorder contents (14e8a772c3a05c32bc9fba6f75565132025d4942) - TOC (d6338ab45f6e45e5562e5e6f4f1db86f39ca458d) - Added more information on the new specification (f984eedde6be5db804d0b6bf2e238ab2e7ca15fb) - added more commit examples and npm versioning usage (51341b7aae082c6c1a1caaa77dfdbfdc2622a56f) - add logo (1af36c9b0dad5cc0c2a321e3f280a89d76a8fb2b) - Final readme Fixes #1 Closes #1 (e725d8f4bf477b517ca6185a75fdfa0aa660b3be, Closes: [#1](https://github.com/rafinskipg/git-changelog/issues/1))
- Updated readme (2d7b17625b9783532ee9ba655651cf8d475aa4ce) - Unuseful commit (4373f4726eedad6d450c8255f5e57036a3e5e223) - fix link to the `.changelogrc` section (2975171d89e1823253399bbe87a184e9164e9799) - Follow proper style in example commits (6fef01ba8a71bb5cd779ddb84f52b8f75296618d) - Reorder contents (14e8a772c3a05c32bc9fba6f75565132025d4942) - TOC (d6338ab45f6e45e5562e5e6f4f1db86f39ca458d) - Added more information on the new specification (f984eedde6be5db804d0b6bf2e238ab2e7ca15fb) - added more commit examples and npm versioning usage (51341b7aae082c6c1a1caaa77dfdbfdc2622a56f) - add logo (1af36c9b0dad5cc0c2a321e3f280a89d76a8fb2b) - Final readme Fixes #1 Closes #1 (e725d8f4bf477b517ca6185a75fdfa0aa660b3be, Closes: [#1](https://github.com/rafinskipg/git-changelog/issues/1))



Expand All @@ -87,6 +89,8 @@ _This changelog is generated with a custom template_


## Style
- **jshint**
- Fixed style (217bdf588729e8dba5739bd6edb424523e48b001)
- **message**
- Added a message on the changelog for referencing the github (d20031a9dc6fd92cba205903b2fd9d25feae6ea7)

Expand Down Expand Up @@ -156,7 +160,7 @@ _This changelog is generated with a custom template_
- **package.json**
- Added preversion script (b3f1e44a900b00bda1facaee5354ba1ff58166aa)
- **release**
- 1.0.0 codename(magnificent-goldman) (6b836fbea9405727bfc6d8e83349ea5cf8965b05) - 0.1.8 codename(furious-stallman) (b943231854ffd6cb0c5f32e5482cadd99c96f3e9)
- 1.1.0 codename(christmas-templates) (d7d37854f9bcf6a885be278d05bf78651d493b1d) - 1.0.0 codename(magnificent-goldman) (6b836fbea9405727bfc6d8e83349ea5cf8965b05) - 0.1.8 codename(furious-stallman) (b943231854ffd6cb0c5f32e5482cadd99c96f3e9)
- **task**
- cleanup unused requires (8a41d4e7b245b2698749279765bcef4748e18ac7)

Expand Down
8 changes: 7 additions & 1 deletion output/tag1.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

_This changelog is from the previous tag_

## v0.0.1 ( Sun Dec 25 2016 13:33:21 GMT+0100 (CET) )
## squeezy potatoe v0.0.1 ( Fri Jan 06 2017 13:50:31 GMT+0100 (CET) )


## Bug Fixes
Expand Down Expand Up @@ -64,10 +64,16 @@ _This changelog is from the previous tag_
- Restores versionName in CLI
([1d97f952](https://github.com/rafinskipg/git-changelog/commit/1d97f952bd5d37f67c1febdf161f4ce9b310eebf))

- **travis**
- Removed 0.12 nodejs version, addd 7.3.0
([18190836](https://github.com/rafinskipg/git-changelog/commit/1819083690e70e0af28d0c155b6fa67cbeb1dfb3))




## Pull requests merged
- Merge pull request #70 from rafinskipg/templating
([5e60232c](https://github.com/rafinskipg/git-changelog/commit/5e60232cf92b66cf50f64f3a7734de98fe2637e7))
- Merge pull request #60 from seivan/feature/latest_tag_regardless_of_branch
([1ff50d0d](https://github.com/rafinskipg/git-changelog/commit/1ff50d0dc03f8c0db9961c034945c3ef8f4268f7))
- Merge pull request #58 from olamothe/master
Expand Down
2 changes: 1 addition & 1 deletion templates/template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if(logo) { %><img width="300px" src="<%= logo %>" /><%= '\n\n' %><% } %># <%= title %>
<% if(intro) { %><%= '\n' %>_<%= intro %>_<%= '\n' %><% } %>
<% if(version && (version.name || version.number)) { %>##<% if(version.name){%><%= version.name %><% } %> <%= version.number %> <% if(version.date){ %>( <%= version.date %> )<% } %><%= '\n' %><% } %>
<% if(version && (version.name || version.number)) { %>##<% if(version.name){%> <%= version.name %><% } %> <%= version.number %> <% if(version.date){ %>( <%= version.date %> )<% } %><%= '\n' %><% } %>
<% _.forEach(sections, function(section){
if(section.commitsCount > 0) { %>
## <%= section.title %>
Expand Down

0 comments on commit f494f4a

Please sign in to comment.