gitlab_awesome_release 0.1.0.beta7 → 0.1.0.beta8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c0eed3767a7d29e0651f78c873dc36f5bd13ee0
4
- data.tar.gz: fd13563bad278be9c8d3055a09b429f10516d115
3
+ metadata.gz: 355a9cb73d304418f9b01cc42e12fad653563244
4
+ data.tar.gz: 0ef0e30cefce4d31f54b989d4f943b5b25b56c1f
5
5
  SHA512:
6
- metadata.gz: e72936c53da657150d04467c4a5b06b30cbf58dc8f76daf0762327202815e86dca7003e9599755a231b096ef041c2706028c26a2db6215f8d2efd494abb7d4bd
7
- data.tar.gz: af27d2340df14b6465b74d8e8cc3593515a38ebd6f9592ad3c572843dd12eed8be82e54553db75ba894934130fcf56caa63af1893147fa493c361f4ade8c442a
6
+ metadata.gz: acb6ea4023c1d85fc4d08a0db6fa7c3274c5b327d546f840d557da6aa59211d90c8835d6eb59ed7a84a923cb1147842ea6d6cb447ec3d6fe77f32ce54ea2e5a3
7
+ data.tar.gz: ac42e747670f86c4435c169765f2aa028c9219fe938624b3a0b29775c2eb21520b7a5c2879a99eec7e221092161e3512c4dc8dc3afc586ad4ea6f3571f4b7bb0
data/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  ## Unreleased
2
- [full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v0.1.0.beta6...HEAD)
2
+ [full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v0.1.0.beta7...HEAD)
3
3
 
4
4
 
5
+ ## v0.1.0.beta7
6
+ [full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v0.1.0.beta6...v0.1.0.beta7)
7
+
8
+ * Don't update MR when add label [!14](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/14) *@sue445*
9
+ * Always use GitLab debug logging [!15](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/15) *@sue445*
10
+
5
11
  ## v0.1.0.beta6
6
12
  [full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v0.1.0.beta5...v0.1.0.beta6)
7
13
 
@@ -48,15 +48,23 @@ module GitlabAwesomeRelease
48
48
  # @return [String]
49
49
  def generate_change_log(oldest_tag, newest_tag)
50
50
  release_notes = []
51
+ release_notes << generate_heading(oldest_tag)
51
52
  release_tag_names.within(oldest_tag, newest_tag).each_cons(2) do |from, to|
52
53
  release_notes << generate_release_note(from, to)
53
54
  end
54
55
  release_notes << generate_release_note(newest_tag, "HEAD", title: "Unreleased") if newest_tag == all_tag_names.last
55
56
 
56
- release_notes.reverse.each_with_object("") do |release_note, str|
57
- str << release_note
58
- str << "\n"
59
- end
57
+ changelog =
58
+ release_notes.reverse.each_with_object("") do |release_note, str|
59
+ str << release_note
60
+ str << "\n"
61
+ end
62
+
63
+ changelog << <<-MARKDOWN.strip_heredoc
64
+ *This Change Log was automatically generated by [gitlab_awesome_release](https://gitlab.com/sue445/gitlab_awesome_release)*
65
+ MARKDOWN
66
+
67
+ changelog
60
68
  end
61
69
 
62
70
  # generate release note between from...to
@@ -70,8 +78,8 @@ module GitlabAwesomeRelease
70
78
  title ||= to
71
79
  summary = merge_requests_summary_between(from, to)
72
80
 
73
- header = <<-MARKDOWN.strip_heredoc
74
- ## #{title}
81
+ header = generate_heading(title)
82
+ header << <<-MARKDOWN.strip_heredoc
75
83
  [full changelog](#{web_url}/compare/#{from}...#{to})
76
84
 
77
85
  MARKDOWN
@@ -79,6 +87,10 @@ module GitlabAwesomeRelease
79
87
  header + summary
80
88
  end
81
89
 
90
+ def generate_heading(title)
91
+ "## #{title}\n"
92
+ end
93
+
82
94
  # find merge requests between from...to
83
95
  # @param from [String]
84
96
  # @param to [String]
@@ -1,3 +1,3 @@
1
1
  module GitlabAwesomeRelease
2
- VERSION = "0.1.0.beta7"
2
+ VERSION = "0.1.0.beta8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_awesome_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta7
4
+ version: 0.1.0.beta8
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport