octorelease 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/octorelease/version.rb +1 -1
- data/lib/octorelease.rb +9 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2afa312df40a06e80fa5118948c42d038be5dadf
|
4
|
+
data.tar.gz: 95805f9f590aec59551062066026f950a505a71b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5947940968be56746eff792642777b859db5c125c1919fb7cada9e24f2e5aee9abb72a1b30ac352740fcbe27974803e0bd7ad41a7a5408ef588459c86e5b6954
|
7
|
+
data.tar.gz: 11e95fc2e8b6dcc387eb636d8cfb167050d46400269b7057e87ae10076451e35c103af5e9ccd94451153c2a0eecde3a79519deb8c5e857d8fa404011c327ae4b
|
data/lib/octorelease/version.rb
CHANGED
data/lib/octorelease.rb
CHANGED
@@ -34,9 +34,13 @@ task "octorelease" => "release" do
|
|
34
34
|
description = []
|
35
35
|
log.split(/commit/).each do |lines|
|
36
36
|
lines.match(/Merge pull request \#(\d+)/) do |m|
|
37
|
-
|
38
|
-
|
37
|
+
pull_id = m[1]
|
38
|
+
url = "https://github.com/#{repo}/pull/#{pull_id}"
|
39
|
+
title = Octokit.pull_request(repo, pull_id).title
|
39
40
|
description << "* [#{title}](#{url})"
|
41
|
+
|
42
|
+
Octokit.create_pull_request_comment(repo, pull_id, "Released as #{current_version}")
|
43
|
+
Bundler.ui.confirm "Added a release comment to the pull request ##{pull_id}"
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
@@ -46,6 +50,8 @@ task "octorelease" => "release" do
|
|
46
50
|
{:body => description.join("\n")}
|
47
51
|
)
|
48
52
|
|
49
|
-
Bundler.ui.confirm "
|
53
|
+
Bundler.ui.confirm "Created release #{current_version}."
|
50
54
|
Bundler.ui.confirm "https://github.com/#{repo}/releases/tag/#{current_version}"
|
55
|
+
|
56
|
+
|
51
57
|
end
|