From e4b79e75ca68122e7dbf4e85c7fec9100dd1c971 Mon Sep 17 00:00:00 2001 From: sugamasao Date: Sat, 17 Jan 2015 10:28:31 +0900 Subject: [PATCH 1/4] fix link tag format Remove Extra Space. --- lib/github_changelog_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github_changelog_generator.rb b/lib/github_changelog_generator.rb index 646c20f..dcf2e16 100755 --- a/lib/github_changelog_generator.rb +++ b/lib/github_changelog_generator.rb @@ -321,7 +321,7 @@ module GitHubChangelogGenerator github_site = options[:github_site] || 'https://github.com' # Generate tag name and link - log = "## [#{tag_name}] (#{github_site}/#{@options[:user]}/#{@options[:project]}/tree/#{tag_name})\n" + log = "## [#{tag_name}](#{github_site}/#{@options[:user]}/#{@options[:project]}/tree/#{tag_name})\n" #Generate date string: time_string = tag_time.strftime @options[:format] From 17f7127de14e1ad9a26850d9c5ab8262a0b049de Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Wed, 21 Jan 2015 19:14:31 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b7aa89..4d9c39c 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,13 @@ You're almost done! ## Usage **It's really simple**: -- If your **git remote** `origin` refer to your GitHub repo, then just go to your project folder just run: +- If your **git remote** `origin` refer to your GitHub repo, then just go to your project folder and run: github_changelog_generator - or from anywhere: - github_changelog_generator -u github-username -p github-project + github_changelog_generator -u github_username -p github_project As output you will get `CHANGELOG.md` file with *pretty Markdown-formatted* changelog. From fa713af81620383f33c8f07f15f8839454220279 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Wed, 21 Jan 2015 19:17:57 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4d9c39c..6e50be5 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ You're almost done! github_changelog_generator -u github_username -p github_project -As output you will get `CHANGELOG.md` file with *pretty Markdown-formatted* changelog. +As output you will get `CHANGELOG.md` file with pretty *Markdown-formatted* changelog. ### Params: Type `github_changelog_generator --help` for detailed usage. @@ -57,7 +57,9 @@ And: - Run with key `-t [your-16-digit-token]` - Or set environment variable `CHANGELOG_GITHUB_TOKEN` and specify there your token. - i.e. add to your `~/.bash_profile` or `~/.zshrc` or any other place to load ENV variables string `export CHANGELOG_GITHUB_TOKEN="your-40-digit-github-token"'` + i.e. add to your `~/.bash_profile` or `~/.zshrc` or any other place to load ENV variables string : + + export CHANGELOG_GITHUB_TOKEN="your-40-digit-github-token" So, if you got error like this: >! /Library/Ruby/Gems/2.0.0/gems/github_api-0.12.2/lib/github_api/response/raise_error.rb:14:in `on_complete' From 4bcf49175b785121155ec943b55666ef57199b50 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Wed, 21 Jan 2015 19:19:48 +0100 Subject: [PATCH 4/4] Update changelog for version 1.2.6 --- CHANGELOG.md | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2c3ad4..b3e9b0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -## [1.2.5] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.5) +## [1.2.6](https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.6) +#### 21/01/15 +- *Merged pull-request:* fix link tag format [\#45](https://github.com/skywinder/Github-Changelog-Generator/pull/45) ([sugamasao](https://github.com/sugamasao)) + +## [1.2.5](https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.5) #### 15/01/15 - *Merged pull-request:* PrettyPrint class is included using lowercase 'pp' [\#43](https://github.com/skywinder/Github-Changelog-Generator/pull/43) ([schwing](https://github.com/schwing)) @@ -10,7 +14,7 @@ - *Fixed bug:* Error when trying to generate log for repo without tags [\#32](https://github.com/skywinder/Github-Changelog-Generator/issues/32) -## [1.2.4] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.4) +## [1.2.4](https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.4) #### 16/12/14 - *Merged pull-request:* Fix crash when user is NULL [\#40](https://github.com/skywinder/Github-Changelog-Generator/pull/40) ([skywinder](https://github.com/skywinder)) @@ -24,15 +28,15 @@ - *Fixed bug:* Crash when try generate log for rails [\#35](https://github.com/skywinder/Github-Changelog-Generator/issues/35) -## [1.2.3] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.3) +## [1.2.3](https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.3) #### 16/12/14 -## [1.2.2] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.2) +## [1.2.2](https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.2) #### 10/12/14 - *Merged pull-request:* Add a Bitdeli Badge to README [\#36](https://github.com/skywinder/Github-Changelog-Generator/pull/36) ([bitdeli-chef](https://github.com/bitdeli-chef)) - *Fixed bug:* Encapsulate \[ \> \* \_ \ \] signs in issues names [\#34](https://github.com/skywinder/Github-Changelog-Generator/issues/34) -## [1.2.1] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.1) +## [1.2.1](https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.1) #### 22/11/14 - *Merged pull-request:* Issues for last tag not in list [\#29](https://github.com/skywinder/Github-Changelog-Generator/pull/29) ([skywinder](https://github.com/skywinder)) @@ -40,7 +44,7 @@ - *Fixed bug:* Script fills changelog only for first 30 tags. [\#20](https://github.com/skywinder/Github-Changelog-Generator/issues/20) -## [1.2.0] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.0) +## [1.2.0](https://github.com/skywinder/Github-Changelog-Generator/tree/1.2.0) #### 19/11/14 - *Merged pull-request:* Add filter for pull-requests labels. \(option --filter-pull-requests\) [\#27](https://github.com/skywinder/Github-Changelog-Generator/pull/27) ([skywinder](https://github.com/skywinder)) @@ -50,19 +54,19 @@ - *Merged pull-request:* Don't receive issues in case of --no-isses flag specied [\#24](https://github.com/skywinder/Github-Changelog-Generator/pull/24) ([skywinder](https://github.com/skywinder)) -## [1.1.4] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.1.4) +## [1.1.4](https://github.com/skywinder/Github-Changelog-Generator/tree/1.1.4) #### 18/11/14 - *Merged pull-request:* Sort tags by date [\#23](https://github.com/skywinder/Github-Changelog-Generator/pull/23) ([skywinder](https://github.com/skywinder)) - *Implemented enhancement:* Implement ability to retrieve GitHub token from ENV variable \(to not put it to script directly\) [\#19](https://github.com/skywinder/Github-Changelog-Generator/issues/19) -## [1.1.2] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.1.2) +## [1.1.2](https://github.com/skywinder/Github-Changelog-Generator/tree/1.1.2) #### 12/11/14 - *Merged pull-request:* Fix bug with dot signs in project name [\#18](https://github.com/skywinder/Github-Changelog-Generator/pull/18) ([skywinder](https://github.com/skywinder)) - *Merged pull-request:* Fix bug with dot signs in user name [\#17](https://github.com/skywinder/Github-Changelog-Generator/pull/17) ([skywinder](https://github.com/skywinder)) -## [1.1.1] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.1.1) +## [1.1.1](https://github.com/skywinder/Github-Changelog-Generator/tree/1.1.1) #### 10/11/14 - *Merged pull-request:* Remove duplicates of issues and pull-requests with same number [\#15](https://github.com/skywinder/Github-Changelog-Generator/pull/15) ([skywinder](https://github.com/skywinder)) @@ -70,7 +74,7 @@ - *Merged pull-request:* Add ability to add or exclude issues without any labels [\#13](https://github.com/skywinder/Github-Changelog-Generator/pull/13) ([skywinder](https://github.com/skywinder)) -## [1.1.0] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.1.0) +## [1.1.0](https://github.com/skywinder/Github-Changelog-Generator/tree/1.1.0) #### 10/11/14 - *Implemented enhancement:* Detect username and project form origin [\#11](https://github.com/skywinder/Github-Changelog-Generator/issues/11) @@ -78,11 +82,11 @@ - *Fixed bug:* Bug with wrong credentials in 1.0.1 [\#12](https://github.com/skywinder/Github-Changelog-Generator/issues/12) -## [1.0.1] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.0.1) +## [1.0.1](https://github.com/skywinder/Github-Changelog-Generator/tree/1.0.1) #### 10/11/14 - *Merged pull-request:* Implement support of different tags. [\#8](https://github.com/skywinder/Github-Changelog-Generator/pull/8) ([skywinder](https://github.com/skywinder)) -## [1.0.0] (https://github.com/skywinder/Github-Changelog-Generator/tree/1.0.0) +## [1.0.0](https://github.com/skywinder/Github-Changelog-Generator/tree/1.0.0) #### 07/11/14 - *Merged pull-request:* Add support for issues in CHANGELOG [\#7](https://github.com/skywinder/Github-Changelog-Generator/pull/7) ([skywinder](https://github.com/skywinder)) @@ -94,15 +98,15 @@ - *Fixed bug:* Last tag not appeared in changelog [\#5](https://github.com/skywinder/Github-Changelog-Generator/issues/5) -## [0.1.0] (https://github.com/skywinder/Github-Changelog-Generator/tree/0.1.0) +## [0.1.0](https://github.com/skywinder/Github-Changelog-Generator/tree/0.1.0) #### 07/11/14 - *Merged pull-request:* Add changelog generation for last tag [\#2](https://github.com/skywinder/Github-Changelog-Generator/pull/2) ([skywinder](https://github.com/skywinder)) - *Merged pull-request:* Add option \(-o --output\) to specify name of the output file. [\#1](https://github.com/skywinder/Github-Changelog-Generator/pull/1) ([skywinder](https://github.com/skywinder)) -## [0.0.2] (https://github.com/skywinder/Github-Changelog-Generator/tree/0.0.2) +## [0.0.2](https://github.com/skywinder/Github-Changelog-Generator/tree/0.0.2) #### 06/11/14 -## [0.0.1] (https://github.com/skywinder/Github-Changelog-Generator/tree/0.0.1) +## [0.0.1](https://github.com/skywinder/Github-Changelog-Generator/tree/0.0.1) #### 06/11/14