Skip to content

Commit

Permalink
#15 Fixes broken commit URL
Browse files Browse the repository at this point in the history
  In previous version commit URL was broken unexpectedly.Current
commit fixes broken URL and replaces it with the correct one
  • Loading branch information
baygunm committed Jul 26, 2013
1 parent f4748a4 commit 35f0b39
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
44 changes: 24 additions & 20 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@

#### [Current]
* [6b8cfe7](6b8cfe7) #13 Add custom file name support to rake __(Murat Kemal BAYGÜN)__
* [7b5be3d](7b5be3d) #10 add output file name as optional parameter __(Murat Kemal BAYGÜN)__
* [695646c](695646c) #12 Add and correct information on gemspec __(Murat Kemal BAYGÜN)__
* [f30a3b2](f30a3b2) #9 Update rake job to use installed executable __(Murat Kemal BAYGÜN)__
* [a7200f0](a7200f0) #11 Fix bug Current commits is not seen on log file __(Murat Kemal BAYGÜN)__
* [6385fff](6385fff) #8 Change executable file name to katip __(Murat Kemal BAYGÜN)__


#### 1.0.0
* [cbec9c0](../../commit/cbec9c0) release version 1.0.0 __(Murat Kemal BAYGÜN)__
* [6b8cfe7](../../commit/6b8cfe7) #13 Add custom file name support to rake __(Murat Kemal BAYGÜN)__
* [7b5be3d](../../commit/7b5be3d) #10 add output file name as optional parameter __(Murat Kemal BAYGÜN)__
* [695646c](../../commit/695646c) #12 Add and correct information on gemspec __(Murat Kemal BAYGÜN)__
* [f30a3b2](../../commit/f30a3b2) #9 Update rake job to use installed executable __(Murat Kemal BAYGÜN)__
* [a7200f0](../../commit/a7200f0) #11 Fix bug Current commits is not seen on log file __(Murat Kemal BAYGÜN)__
* [6385fff](../../commit/6385fff) #8 Change executable file name to katip __(Murat Kemal BAYGÜN)__

#### 0.2.0
* [61b2f06](61b2f06) Version 0.2.0 __(Murat Kemal BAYGÜN)__
* [9bd7659](9bd7659) #7 Fix documentation __(Murat Kemal BAYGÜN)__
* [2abca18](2abca18) #7 Organize readme, add usage for daktilo __(Murat Kemal BAYGÜN)__
* [b939475](b939475) #7 Add output message to inform user __(Murat Kemal BAYGÜN)__
* [99d3b3f](99d3b3f) #7 Add executable ruby file to gem to generate default output CHANGELOG.md __(Murat Kemal BAYGÜN)__
* [7265622](7265622) #4 Add simple usage documentation on readme __(Murat Kemal BAYGÜN)__
* [61b2f06](../../commit/61b2f06) Version 0.2.0 __(Murat Kemal BAYGÜN)__
* [9bd7659](../../commit/9bd7659) #7 Fix documentation __(Murat Kemal BAYGÜN)__
* [2abca18](../../commit/2abca18) #7 Organize readme, add usage for daktilo __(Murat Kemal BAYGÜN)__
* [b939475](../../commit/b939475) #7 Add output message to inform user __(Murat Kemal BAYGÜN)__
* [99d3b3f](../../commit/99d3b3f) #7 Add executable ruby file to gem to generate default output CHANGELOG.md __(Murat Kemal BAYGÜN)__
* [7265622](../../commit/7265622) #4 Add simple usage documentation on readme __(Murat Kemal BAYGÜN)__

#### 0.1.0
* [de3acfb](de3acfb) #6 Update gemspec __(Onur Ozgur OZKAN)__
* [498c3d6](498c3d6) #6 Set gem __(Onur Ozgur OZKAN)__
* [416e6c8](416e6c8) #6 Set gem __(Onur Ozgur OZKAN)__
* [c820767](c820767) #4 Add CHANGELOG.md file __(Murat Kemal BAYGÜN)__
* [18fba8f](18fba8f) #3 Add logger file __(Murat Kemal BAYGÜN)__
* [105af37](105af37) Update readme __(Murat Kemal BAYGÜN)__
* [bc56515](bc56515) Initial commit __(Murat Kemal BAYGÜN)__
* [1b1d477](1b1d477) Initial commit __(Murat Kemal BAYGÜN)__
* [de3acfb](../../commit/de3acfb) #6 Update gemspec __(Onur Ozgur OZKAN)__
* [498c3d6](../../commit/498c3d6) #6 Set gem __(Onur Ozgur OZKAN)__
* [416e6c8](../../commit/416e6c8) #6 Set gem __(Onur Ozgur OZKAN)__
* [c820767](../../commit/c820767) #4 Add CHANGELOG.md file __(Murat Kemal BAYGÜN)__
* [18fba8f](../../commit/18fba8f) #3 Add logger file __(Murat Kemal BAYGÜN)__
* [105af37](../../commit/105af37) Update readme __(Murat Kemal BAYGÜN)__
* [bc56515](../../commit/bc56515) Initial commit __(Murat Kemal BAYGÜN)__
* [1b1d477](../../commit/1b1d477) Initial commit __(Murat Kemal BAYGÜN)__
6 changes: 4 additions & 2 deletions bin/katip
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env ruby

REPO_URL='../../commit/'

def write_file(output)

file_name='CHANGELOG.md'
Expand Down Expand Up @@ -40,13 +42,13 @@ def parse_change_log
output << "\n#### #{previous_tag}"
end

output << `git log --pretty=format:" * [%h]($repo_url%h) %s __(%an)__" "#{current_tag}".."#{previous_tag}" | grep -v "Merge branch "`
output << `git log --pretty=format:" * [%h](#{REPO_URL}%h) %s __(%an)__" "#{current_tag}".."#{previous_tag}" | grep -v "Merge branch "`

previous_tag = current_tag
end

output << "\n#### #{previous_tag}"
output << `git log --pretty=format:" * [%h]($repo_url%h) %s __(%an)__" #{previous_tag} | grep -v "Merge branch "`
output << `git log --pretty=format:" * [%h](#{REPO_URL}%h) %s __(%an)__" #{previous_tag} | grep -v "Merge branch "`

output
end
Expand Down

0 comments on commit 35f0b39

Please sign in to comment.