github_changelog_generator 1.3.9 → 1.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0445f0b783728bf9debe8323d3693fbd86c8d3b0
4
- data.tar.gz: edbc8f9b1deef9e4e530824d69ff268e05b90c42
3
+ metadata.gz: 550ffaa5315e62e51fff66f6849d613645cd2b66
4
+ data.tar.gz: 90f49fbb710335783ab9c1c8000942964b278432
5
5
  SHA512:
6
- metadata.gz: 3a09af3b6ff45d6597d67441efbb524d453dd838298c79f97f8467c327a083d997d9ad00ffbff6d71144de4af5c1b1bb3d2a618519eade887cd5e3cfe6ddd717
7
- data.tar.gz: dd9a11d05abe6bc11cc02fb6bc890a062d480edfd2218beaf9cf7af6f0d9b460cc5a9206659b50e19e4f43c908dce618143c32a3f9cd0c2dee66f8e7fcfd40dc
6
+ metadata.gz: b8be22cfb5f754d1a9e5c0db864242bb1dfeca8ddf0d39feea9ba0e176210762cee0161756ede317675deaa36a1f33c154189f61bae21a652d6a1ecd33290745
7
+ data.tar.gz: fb3b6feb084be5f671389199d7234c75039eb411bcf74b44460597bc4323bbba6309d9b64d4ba927cadda0eb980c9f603e2ea802e11fb648e738b414998d05ba
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.3.9](https://github.com/skywinder/Github-Changelog-Generator/tree/1.3.9) (2015-03-06)
4
+
5
+ [Full Changelog](https://github.com/skywinder/Github-Changelog-Generator/compare/1.3.8...1.3.9)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Improve method of detecting owner and repository [\#63](https://github.com/skywinder/Github-Changelog-Generator/issues/63)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Concurrency problem in case of issues \> 2048 [\#65](https://github.com/skywinder/Github-Changelog-Generator/pull/65) ([skywinder](https://github.com/skywinder))
14
+
3
15
  ## [1.3.8](https://github.com/skywinder/Github-Changelog-Generator/tree/1.3.8) (2015-03-05)
4
16
 
5
17
  [Full Changelog](https://github.com/skywinder/Github-Changelog-Generator/compare/1.3.6...1.3.8)
data/README.md CHANGED
@@ -62,8 +62,8 @@ Changelog generation has never been so easy.
62
62
  github_changelog_generator
63
63
 
64
64
  - or from anywhere:
65
-
66
- github_changelog_generator -u github_username -p github_project
65
+ - `github_changelog_generator -u github_username -p github_project`
66
+ - `github_changelog_generator github_username/github_project`
67
67
 
68
68
  As output you will get `CHANGELOG.md` file with pretty *Markdown-formatted* changelog.
69
69
 
@@ -116,19 +116,19 @@ It's time to create this token or wait for 1 hour before GitHub reset the counte
116
116
 
117
117
  ##Features and advantages of this project
118
118
  - Generate canonical change log file, followed by [keepachangelog.com guidlines](http://keepachangelog.com/)
119
- - Simply add links for all closed issues and merged pull requests
120
119
  - Possible to generate **Unreleased** changes (closed issues that have not released yet)
121
- - Flexible format customisation:
122
- - Customize issues, that should be added to changelog
123
- - Custom date format supported
120
+ - **GitHub Enterprise support** via command line options!
121
+ - Flexible format **customisation**:
122
+ - **Customize** issues, that **should be added** to changelog
123
+ - **Custom date format** supported
124
124
  - Ability to manually specify in which version issue was fixed (in case, when closed date is not match) by setting `milestone` of issue the same name as tag of required version
125
- - Ability to exclude specific issues from change log (by labels)
126
- - Automatically exclude "questions" - issues marked as `question` labels (and other issues, that shouldn't be in change log file: with `duplicate invalid wontfix` labels)
127
- - Distinguish bug fixes, enchantments, and closed issues according labels.
128
- - **Issues** (closed issues w/o any labels)
129
- - **Merged pull-requests** (all merged pull-requests)
130
- - **Bug-fixes** (by label `bug` in issue)
131
- - **Enhancements** (by label `enhancement` in issue)
125
+ - Ability to **exclude specific issues** from change log (by labels)
126
+ - **Automatically exclude "questions"** - issues marked as `question` labels (and other issues, that shouldn't be in change log file: with `duplicate invalid wontfix` labels)
127
+ - **Distinguish** bug fixes, enchantments, and closed issues **according labels**.
128
+ - Issues (closed issues w/o any labels)
129
+ - Merged pull-requests (all merged pull-requests)
130
+ - Bug-fixes (by label `bug` in issue)
131
+ - Enhancements (by label `enhancement` in issue)
132
132
 
133
133
  ###Alternatives
134
134
  Here is a [wikipage list of alternatives](https://github.com/skywinder/Github-Changelog-Generator/wiki/Alternatives), that I found. But no one was satisfy my requirements.
@@ -36,7 +36,6 @@ module GitHubChangelogGenerator
36
36
 
37
37
  if @options[:pulls]
38
38
  @pull_requests = self.get_filtered_pull_requests
39
- self.fetch_merged_at_pull_requests
40
39
  else
41
40
  @pull_requests = []
42
41
  end
@@ -138,12 +137,12 @@ module GitHubChangelogGenerator
138
137
 
139
138
  def get_filtered_pull_requests
140
139
 
141
- pull_requests = @pull_requests
142
- filtered_pull_requests = pull_requests
140
+ self.fetch_merged_at_pull_requests
143
141
 
142
+ filtered_pull_requests = @pull_requests.select {|pr| pr[:merged_at] != nil }
144
143
 
145
144
  unless @options[:include_labels].nil?
146
- filtered_pull_requests = pull_requests.select { |issue|
145
+ filtered_pull_requests = @pull_requests.select { |issue|
147
146
  #add all labels from @options[:incluse_labels] array
148
147
  (issue.labels.map { |label| label.name } & @options[:include_labels]).any?
149
148
  }
@@ -157,7 +156,7 @@ module GitHubChangelogGenerator
157
156
  end
158
157
 
159
158
  if @options[:add_issues_wo_labels]
160
- issues_wo_labels = pull_requests.select {
159
+ issues_wo_labels = @pull_requests.select {
161
160
  # add issues without any labels
162
161
  |issue| !issue.labels.map { |label| label.name }.any?
163
162
  }
@@ -332,7 +331,7 @@ module GitHubChangelogGenerator
332
331
 
333
332
  if filtered_issues.empty? && filtered_pull_requests.empty? && newer_tag.nil?
334
333
  # do not generate empty unreleased section
335
- return nil
334
+ return ''
336
335
  end
337
336
 
338
337
  self.create_log(filtered_pull_requests, filtered_issues, newer_tag, older_tag_name)
@@ -1,3 +1,3 @@
1
1
  module GitHubChangelogGenerator
2
- VERSION = '1.3.9'
2
+ VERSION = '1.3.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_changelog_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9
4
+ version: 1.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Korolev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-06 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler