octopolo 1.7.1 → 1.8.0

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
- SHA1:
3
- metadata.gz: 9cda31d965fb45d75ae197ea4343da56736f69f9
4
- data.tar.gz: 6e3dbbe248ff7c975bdbad6ee696fe30843da062
2
+ SHA256:
3
+ metadata.gz: c7127cc1021b5d826c88d16784375a445515b0e0ec602df9a2a91755f7a22aa5
4
+ data.tar.gz: 1ab2947b7ff4ce2bcbbf04aa24ef5e4189f1c7abaabc1bad951cc1fc2f6e1b18
5
5
  SHA512:
6
- metadata.gz: 3edb4de1696405e53dde4d3abe2fc387856cd42ddac0c847d6ad4ec1e23f65f7fa3ea13d2ab2b33acdd412269c0099bbd9a61760830172dc41f20afa941fe6dd
7
- data.tar.gz: 206579ef9b311236170a6813707351b2288dc5efe82df1a7cc6377b9f1ab585b1447968baf7a0dff353f31e4b28f30258e8c24fdc3964d24ca39596db58f871d
6
+ metadata.gz: 3621dfa1a3d7606569d85029b94a54a21ba34a93395cb5ac1fd062d2489898413e5b80f770f4c91e5c60b395a32d86a934979e3ee438fa27511dd3009e07f235
7
+ data.tar.gz: d46d8cf93716d4a0799c6f928d0664a40ac30fc6f9dcce15b0c42e9475941f1adad9c5581e2f26deb22a1988021f879bbfb6b68fc494735cc4fcccc219584534
@@ -1,3 +1,8 @@
1
+ #### v1.8.0
2
+ * Fail on PR merge errors
3
+
4
+ > Scott Trenda: production-status-check[bot]: https://github.com/sportngin/octopolo/pull/131
5
+
1
6
  #### v1.7.2
2
7
  * Fix pagination issue
3
8
 
@@ -55,7 +55,7 @@ module Octopolo
55
55
  else
56
56
  cli.say "An unknown error occurred: #{e.inspect}"
57
57
  end
58
- false
58
+ raise
59
59
  end
60
60
 
61
61
  # Public: Check out the branch
@@ -1,3 +1,3 @@
1
1
  module Octopolo
2
- VERSION = "1.7.1"
2
+ VERSION = "1.8.0"
3
3
  end
@@ -65,14 +65,14 @@ module Octopolo
65
65
  git.should_receive(:if_clean).and_raise(GitHub::PullRequest::NotFound)
66
66
  cli.should_receive(:say).with("Unable to find pull request #{pull_request_id}. Please retry with a valid ID.")
67
67
 
68
- subject.perform
68
+ expect { subject.perform }.to raise_error
69
69
  end
70
70
 
71
71
  it "properly handles a failed merge" do
72
72
  git.should_receive(:if_clean).and_raise(Git::MergeFailed)
73
73
  cli.should_receive(:say).with("Merge failed. Please identify the source of this merge conflict resolve this conflict in your pull request's branch. NOTE: Merge conflicts resolved in the deployable branch are NOT used when deploying.")
74
74
 
75
- subject.perform
75
+ expect { subject.perform }.to raise_error
76
76
  end
77
77
 
78
78
  it "properly handles a failed checkout of branch" do
@@ -80,14 +80,15 @@ module Octopolo
80
80
  git.should_receive(:latest_branch_for).with("deployable").and_return("deployable")
81
81
  cli.should_receive(:say).with("Checkout of #{git.deployable_branch} failed. Please contact Infrastructure to determine the cause.")
82
82
 
83
- subject.perform
83
+ expect { subject.perform }.to raise_error
84
84
  end
85
85
 
86
86
  it "properly handles a failed comment" do
87
87
  git.should_receive(:if_clean).and_raise(GitHub::PullRequest::CommentFailed)
88
88
  git.should_receive(:latest_branch_for).with("deployable").and_return("deployable")
89
89
  cli.should_receive(:say).with("Unable to write comment. Please navigate to #{pull_request.url} and add the comment, '#{subject.comment_body}'")
90
- subject.perform
90
+
91
+ expect { subject.perform }.to raise_error
91
92
  end
92
93
  end
93
94
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopolo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Byrne
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-09-05 00:00:00.000000000 Z
13
+ date: 2018-11-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gli
@@ -375,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
375
  version: '0'
376
376
  requirements: []
377
377
  rubyforge_project:
378
- rubygems_version: 2.6.14
378
+ rubygems_version: 2.7.8
379
379
  signing_key:
380
380
  specification_version: 4
381
381
  summary: A set of GitHub workflow scripts to provide a smooth development process