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 +4 -4
- data/README.md +15 -0
- data/bin/git-pr-release +2 -2
- data/git-pr-release.gemspec +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14fe43fb88f31454488bea5121a298e1d07dfd41
|
4
|
+
data.tar.gz: e6adcca9eb1eabda83702e00f1ea4de32026d300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/bin/git-pr-release
CHANGED
@@ -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
|
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
|
346
|
+
exit 3
|
347
347
|
end
|
348
348
|
|
349
349
|
say "#{create_mode ? 'Created' : 'Updated'} pull request: #{updated_pull_request.rels[:html].href}", :notice
|
data/git-pr-release.gemspec
CHANGED
@@ -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.
|
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.
|
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:
|
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:
|