ruboty-bitbucket_merge 0.0.1 → 0.0.2

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: e2407008019474d8809e639c9067af9f0a8774c0
4
- data.tar.gz: 7e4d09232fc287723fbca1ddcb49af191f5877c8
3
+ metadata.gz: 252a8be6fb175ce29e965bfc7d3270642a4cb835
4
+ data.tar.gz: 5a22865874a9c4506ca5f6b716c90d07ef7d542b
5
5
  SHA512:
6
- metadata.gz: fdcf03ea0aacc635ce3528613216135ae058c87fbc7619aeb8bb29220c767e974246e870f448b04430e3345f0e5730e799b1a5bcb963b59309a8686f22acdb25
7
- data.tar.gz: 721685ec9b47e9f1ae4d05ee4cf76af56fc09254be6f94d5c878f1bdd5dae0f1e5255faef83485becea85ef9e03c935417de00dc5c6c25f629336e6dd0496a8e
6
+ metadata.gz: 2db993092cbccf3cda5171b14a5cccb56c19a5e6195a893daf9f16fc889b5d5603e226a0cb9fc9132cd7a363092c607d8692555ca60dc7992c5a0b01b831799a
7
+ data.tar.gz: 26c5ad8cba8c28d960b57751776ed99e936b94f6da7fe6e3f8d5f830e0c64de47e8c207435bbff34f6f7982f6c1b01c671a4a247ac02d4771f0af1333c89a36b
data/README.md CHANGED
@@ -26,12 +26,6 @@ botname bb-br-merge master release myaccount/myrepo
26
26
  |BITBUCKET_PASSWORD|your Bitbucket password|
27
27
  |BITBUCKET_EMAIL|your Bitbucket e-mail|
28
28
 
29
- ## Dependency
30
-
31
- |Name|Description|
32
- |:--|:--|
33
- |||
34
-
35
29
  ## Contributing
36
30
 
37
31
  1. Fork it ( https://github.com/xoyip/ruboty-bitbucket_merge/fork )
@@ -15,11 +15,13 @@ module Ruboty
15
15
 
16
16
  begin
17
17
  pr_id, links = create_pull_request
18
+ message.reply("nothing to merge.") and return if pr_id.nil?
18
19
  merge_message = build_merge_message(links["commits"]["href"])
19
20
  merge_pull_request(links["merge"]["href"], pr_id, merge_message)
21
+
20
22
  message.reply("Successfully merged.\n\n" + merge_message)
21
- rescue
22
- message.reply("Failed to merge.")
23
+ rescue => e
24
+ message.reply("Failed to merge. #{e}")
23
25
  end
24
26
  end
25
27
 
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module BitbucketMerge
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-bitbucket_merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - xoyip