Compare commits

...

9 Commits
1.3.6 ... 1.3.8

Author SHA1 Message Date
Petr Korolev
06575c9ab2 Merge branch 'release/1.3.8' 2015-03-05 17:14:52 +02:00
Petr Korolev
aa88122d48 Update gemspec to version 1.3.8 2015-03-05 17:14:51 +02:00
Petr Korolev
a69c2b5343 update gem 2015-03-05 17:14:40 +02:00
Petr Korolev
7fc862a100 update gem 2015-03-05 17:08:39 +02:00
Petr Korolev
87f95140d9 fix: remote branch parsing 2015-03-05 17:07:04 +02:00
Petr Korolev
75ae6f4a3a Merge branch 'hotfix/update-changelog' 2015-03-05 14:36:33 +02:00
Petr Korolev
31c13e8d1d Merge branch 'hotfix/update-changelog' into develop 2015-03-05 14:36:33 +02:00
Petr Korolev
a46fe7470b Update changelog for version 1.3.6 2015-03-05 14:36:31 +02:00
Petr Korolev
b15f6b2837 Merge branch 'hotfix/fix-nil-tag' into develop 2015-03-05 14:35:56 +02:00
5 changed files with 32 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
# Change Log # Change Log
## [1.3.6](https://github.com/skywinder/Github-Changelog-Generator/tree/1.3.6) (2015-03-05)
[Full Changelog](https://github.com/skywinder/Github-Changelog-Generator/compare/1.3.5...1.3.6)
## [1.3.5](https://github.com/skywinder/Github-Changelog-Generator/tree/1.3.5) (2015-03-04) ## [1.3.5](https://github.com/skywinder/Github-Changelog-Generator/tree/1.3.5) (2015-03-04)
[Full Changelog](https://github.com/skywinder/Github-Changelog-Generator/compare/1.3.4...1.3.5) [Full Changelog](https://github.com/skywinder/Github-Changelog-Generator/compare/1.3.4...1.3.5)

View File

@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.email = %q{sky4winder+github_changelog_generator@gmail.com} spec.email = %q{sky4winder+github_changelog_generator@gmail.com}
spec.date = `date +"%Y-%m-%d"`.strip! spec.date = `date +"%Y-%m-%d"`.strip!
spec.summary = %q{Script, that automatically generate changelog from your tags, issues, labels and pull requests.} spec.summary = %q{Script, that automatically generate changelog from your tags, issues, labels and pull requests.}
spec.description = %q{Script, that automatically generate changelog from your tags, issues, labels and pull requests.} spec.description = %q{Changelog generation has never been so easy. Fully automate changelog generation - this gem generate change log file based on tags, issues and merged pull requests from Github issue tracker.}
spec.homepage = %q{https://github.com/skywinder/Github-Changelog-Generator} spec.homepage = %q{https://github.com/skywinder/Github-Changelog-Generator}
spec.license = "MIT" spec.license = "MIT"

View File

@@ -1,5 +1,19 @@
# Change Log # Change Log
## [Unreleased](https://github.com/skywinder/changelog_test/tree/HEAD)
[Full Changelog](https://github.com/skywinder/changelog_test/compare/v0.0.2...HEAD)
**Merged pull requests:**
- Here is a test hotfix should appear in v.0.0.2 [\#2](https://github.com/skywinder/changelog_test/pull/2) ([skywinder](https://github.com/skywinder))
## [v0.0.2](https://github.com/skywinder/changelog_test/tree/v0.0.2) (2015-03-04)
[Full Changelog](https://github.com/skywinder/changelog_test/compare/v0.0.1...v0.0.2)
## [v0.0.1](https://github.com/skywinder/changelog_test/tree/v0.0.1) (2015-03-02)
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*

View File

@@ -26,7 +26,8 @@ module GitHubChangelogGenerator
:filter_issues_by_milestone => true, :filter_issues_by_milestone => true,
:compare_link => true, :compare_link => true,
:unreleased => true, :unreleased => true,
:unreleased_label => 'Unreleased' :unreleased_label => 'Unreleased',
:branch => 'origin'
} }
parser = OptionParser.new { |opts| parser = OptionParser.new { |opts|
@@ -129,11 +130,20 @@ module GitHubChangelogGenerator
if !options[:user] && !options[:project] if !options[:user] && !options[:project]
remote = `git remote -vv`.split("\n") remote = `git remote -vv`.split("\n")
match = /.*(?:[:\/])((?:-|\w|\.)*)\/((?:-|\w|\.)*)?(?:\.git).*/.match(remote[0]) # try to find repo in format: origin git@github.com:skywinder/Github-Changelog-Generator.git (fetch)
remote.select { |v| v.include? options[:branch] }
match = /.*(?:[:\/])((?:-|\w|\.)*)\/((?:-|\w|\.)*)(?:\.git).*/.match(remote[0])
if match && match[1] && match[2] if match && match[1] && match[2]
puts "Detected user:#{match[1]}, project:#{match[2]}" puts "Detected user:#{match[1]}, project:#{match[2]}"
options[:user], options[:project] = match[1], match[2] options[:user], options[:project] = match[1], match[2]
else
# try to find repo in format: origin https://github.com/skywinder/ChangelogMerger (fetch)
match = /.*\/((?:-|\w|\.)*)\/((?:-|\w|\.)*).*/.match(remote[0])
if match && match[1] && match[2]
puts "Detected user:#{match[1]}, project:#{match[2]}"
options[:user], options[:project] = match[1], match[2]
end
end end
end end

View File

@@ -1,3 +1,3 @@
module GitHubChangelogGenerator module GitHubChangelogGenerator
VERSION = '1.3.6' VERSION = '1.3.8'
end end