git-pr-release 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/bin/git-pr-release +2 -2
- data/git-pr-release.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 694fe3719f59b5f9f4a2798de0076b8e29200b9b
|
4
|
+
data.tar.gz: 394d44150cdccadaa2443e214f4b69bfe3f66f83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c21ff349e9e5d0e62ab68e2a37d30933bd607ba61811e9a60c4acbcb337afdb347b733517beeb2d9fc145470953bc7d987dcf3e360f2f1375280c7d270c9afcb
|
7
|
+
data.tar.gz: adc973a3068dbe13cba52fbfd5de3ad67c4ea3960780a6243c61746d42f873c5d33645cc66c4f680784eeba9ec9a9b1fc9dd58e37bf87f260f00840667517829
|
data/README.md
CHANGED
@@ -21,6 +21,8 @@ Token for GitHub API.
|
|
21
21
|
If not set, you will be asked to input username/password for one time only,
|
22
22
|
and this configuration variable will be stored.
|
23
23
|
|
24
|
+
You can specify this value by `GIT_PR_RELEASE_TOKEN` environment variable.
|
25
|
+
|
24
26
|
### `pr-release.branch.production`
|
25
27
|
|
26
28
|
The branch name that is deployed in production environment.
|
data/bin/git-pr-release
CHANGED
@@ -87,7 +87,7 @@ def build_pr_title_and_body(prs)
|
|
87
87
|
|
88
88
|
template = DEFAULT_PR_TEMPLATE
|
89
89
|
|
90
|
-
if path = git_config('
|
90
|
+
if path = git_config('template')
|
91
91
|
template_path = File.join(git('rev-parse', '--show-toplevel').first.chomp, path)
|
92
92
|
template = File.read(template_path)
|
93
93
|
end
|
@@ -135,7 +135,7 @@ def merge_pr_body(old_body, new_body)
|
|
135
135
|
end
|
136
136
|
|
137
137
|
def obtain_token!
|
138
|
-
token = git_config('token')
|
138
|
+
token = ENV.fetch('GIT_PR_RELEASE_TOKEN') { git_config('token') }
|
139
139
|
|
140
140
|
unless token
|
141
141
|
require 'highline/import'
|
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.0.
|
7
|
+
spec.version = '0.0.4'
|
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.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- motemen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|