git-pr-release 0.1.2 → 0.1.3

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: 31005738782d0432b21decbc9b17202eafba54f4
4
- data.tar.gz: ce376a0b273f04c9c5f3c7cb700baf2ba5e9c9f4
3
+ metadata.gz: 14fe43fb88f31454488bea5121a298e1d07dfd41
4
+ data.tar.gz: e6adcca9eb1eabda83702e00f1ea4de32026d300
5
5
  SHA512:
6
- metadata.gz: 70c24c247eeedf6417590d838ad1ab8e8562581fa5de7b4d9f9864deeab8f9b580521bed97388e5130a877dc73d9237e994dee39eba8eb5c80c205acb9610266
7
- data.tar.gz: ca88e048c45fa94fdfe5b6ff8131419af9417bfca72408b2ed4e49ab12d3f7df65d0ab23ff3dcf42c0c57148c6469b0d482220c9465fd2a8b13b163ed61d39e4
6
+ metadata.gz: 825c19e09ee1e2e53a3b910602d42c8794bbb4f414fee77ea5be884f808ca287ad7a8efc5b37758edf6a04d83c6d70838c44a92bdc6e0bfe2c862a9da63b53a3
7
+ data.tar.gz: 35337e086089c5377eca089bff7326d44026ffcf64369b07ee19c9f54db176929a152f9ad7cb49ac0672f51a1e0b136ec80b42ebd3fc7884f1145ec7f0f68550
data/README.md CHANGED
@@ -60,6 +60,21 @@ Release <%= Time.now %>
60
60
  <% end -%>
61
61
  ```
62
62
 
63
+ Errors and exit statuses
64
+ ------------------------
65
+
66
+ ### No pull requests to be released
67
+
68
+ exit status is 1.
69
+
70
+ ### Failed to create a new pull request
71
+
72
+ exit status is 2.
73
+
74
+ ### Failed to update a pull request
75
+
76
+ exit status is 3.
77
+
63
78
  Author
64
79
  ------
65
80
 
@@ -324,7 +324,7 @@ if create_mode
324
324
  )
325
325
  unless created_pr
326
326
  say 'Failed to create a new pull request', :error
327
- exit 1
327
+ exit 2
328
328
  end
329
329
  pr_title, pr_body = build_pr_title_and_body created_pr, merged_prs
330
330
  release_pr = created_pr
@@ -343,7 +343,7 @@ updated_pull_request = client.update_pull_request(
343
343
 
344
344
  unless updated_pull_request
345
345
  say 'Failed to update a pull request', :error
346
- exit 1
346
+ exit 3
347
347
  end
348
348
 
349
349
  say "#{create_mode ? 'Created' : 'Updated'} pull request: #{updated_pull_request.rels[:html].href}", :notice
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "git-pr-release"
7
- spec.version = '0.1.2'
7
+ spec.version = '0.1.3'
8
8
  spec.authors = ["motemen"]
9
9
  spec.email = ["motemen@gmail.com"]
10
10
  spec.summary = 'Creates a release pull request'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-pr-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - motemen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-30 00:00:00.000000000 Z
11
+ date: 2015-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -108,4 +108,3 @@ signing_key:
108
108
  specification_version: 4
109
109
  summary: Creates a release pull request
110
110
  test_files: []
111
- has_rdoc: