changelog_merger 0.1.5 → 0.1.6
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 +4 -4
- data/lib/changelog_merger/version.rb +1 -1
- data/lib/changelog_merger.rb +22 -19
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5c2b1b796cc3f9c1b7ae27e53a42a76285e8c83
|
4
|
+
data.tar.gz: 595f988faa2cb3007298b88343ed486b1afa6c59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3fad29b448c857ee6e9ff3afbd2ebb557cd5929ea309e604d10114f90c0c114c3794882975fd4abbd619cac261a5a315d2410118a0abb905b9889c69d1dbc80
|
7
|
+
data.tar.gz: f4533e7d3496a77e74298201a8b082d9e0160354ac1a6262a24b1c584ab8a5004a7971454c93469269fb8613fa622d9bd8d3eea2f1505ca8d846fa0aba4f9411
|
data/lib/changelog_merger.rb
CHANGED
@@ -7,20 +7,23 @@ module ChangelogMerger
|
|
7
7
|
class Merger
|
8
8
|
def initialize
|
9
9
|
@options = Parser.parse_options
|
10
|
-
|
11
10
|
end
|
12
11
|
|
13
12
|
def run_generator
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
13
|
+
begin
|
14
|
+
if @options[:run_wo_pr]
|
15
|
+
generate_change_log
|
16
|
+
execute_line("open #{@options[:output]}")
|
17
|
+
else
|
18
|
+
go_to_work_dir
|
19
|
+
clone_repo_and_cd
|
20
|
+
check_existing_changelog_file
|
21
|
+
generate_pr_message
|
22
|
+
generate_change_log
|
23
|
+
add_commit_push
|
24
|
+
end
|
25
|
+
rescue
|
26
|
+
execute_line('git push skywinder :add-change-log-file && git checkout master && git branch -D add-change-log-file')
|
24
27
|
end
|
25
28
|
end
|
26
29
|
|
@@ -49,19 +52,19 @@ Hi, as I can see, you are carefully fill tags and labels for issues in your repo
|
|
49
52
|
For such cases I create a [github_changelog_generator](https://github.com/skywinder/github-changelog-generator), that generate change log file based on **tags**, **issues** and merged **pull requests** from :octocat: Issue Tracker.
|
50
53
|
|
51
54
|
This PR add change log file to your repo (generated by this script).
|
52
|
-
You can
|
55
|
+
You can check, how it is look like here: [Change Log](https://github.com/skywinder/#{@options[:project]}/blob/add-change-log-file/#{@options[:output]})
|
53
56
|
|
54
57
|
Some essential features, that has this script:
|
55
58
|
|
56
|
-
- it **exclude** not-related to changelog issues (any issue, that has label
|
59
|
+
- it **exclude** not-related to changelog issues (any issue, that has label \`question\` \`duplicate\` \`invalid\` \`wontfix\` )
|
57
60
|
- Distinguish issues **according labels**:
|
58
|
-
- Merged pull requests (all
|
59
|
-
- Bug fixes (by label
|
60
|
-
- Enhancements (by label
|
61
|
-
- Issues (closed issues
|
61
|
+
- Merged pull requests (all \`merged\` pull-requests)
|
62
|
+
- Bug fixes (by label \`bug\` in issue)
|
63
|
+
- Enhancements (by label \`enhancement\` in issue)
|
64
|
+
- Issues (closed issues \`w/o any labels\`)
|
62
65
|
- Generate neat Change Log file according basic [change log guidelines](http://keepachangelog.com).
|
63
66
|
|
64
|
-
You can easily update this file in future by simply run script:
|
67
|
+
You can easily update this file in future by simply run script: \`github_changelog_generator #{@options[:repo]}\` in your repo folder and it make your Change Log file up-to-date again!
|
65
68
|
|
66
69
|
Hope you find this commit as useful. :wink:"
|
67
70
|
|
@@ -92,7 +95,7 @@ I know that you already has #{@options[:chagelog_exists]} file but give this scr
|
|
92
95
|
execute_line("rm -rf #{@options[:project]}")
|
93
96
|
end
|
94
97
|
execute_line("hub clone #{@options[:repo]}")
|
95
|
-
Dir.chdir("./#{@options[:project]}")
|
98
|
+
@options[:dry_run] || Dir.chdir("./#{@options[:project]}")
|
96
99
|
puts "Go to #{Dir.pwd}"
|
97
100
|
end
|
98
101
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: changelog_merger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
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
|
11
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -134,8 +134,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.4.
|
137
|
+
rubygems_version: 2.4.3
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Script to merge change logs to github repo
|
141
141
|
test_files: []
|
142
|
+
has_rdoc:
|