octorelease 0.0.2 → 0.0.3

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: ab15d2259462fc52f6972fa6de434bf60e5d928d
4
- data.tar.gz: 10cd3193c1aa1994989b7a866b0d4a2ac4bbc616
3
+ metadata.gz: 2afa312df40a06e80fa5118948c42d038be5dadf
4
+ data.tar.gz: 95805f9f590aec59551062066026f950a505a71b
5
5
  SHA512:
6
- metadata.gz: 63c13cf18796598481f3c402bc35a7bea8808e3f9c4e0222204f22e7f5fac57d33489a715585bf4f997f964cc3686955278fb877da8dca3b0f321b85eeb0b08a
7
- data.tar.gz: 3a6651404a2a2eb9c31616cf9ad82a1c98ef25da31fbf2494ee9bd3c1e7ac96aaea45d9f14095828707ae233106b5bc7c90ad923bf7291bd1cd3060235050778
6
+ metadata.gz: 5947940968be56746eff792642777b859db5c125c1919fb7cada9e24f2e5aee9abb72a1b30ac352740fcbe27974803e0bd7ad41a7a5408ef588459c86e5b6954
7
+ data.tar.gz: 11e95fc2e8b6dcc387eb636d8cfb167050d46400269b7057e87ae10076451e35c103af5e9ccd94451153c2a0eecde3a79519deb8c5e857d8fa404011c327ae4b
@@ -1,3 +1,3 @@
1
1
  module OctoRelease
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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
- url = "https://github.com/#{repo}/pull/#{m[1]}"
38
- title = Octokit.pull_request(repo, m[1]).title
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 "Release #{current_version} created."
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octorelease
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita