git-pr-release 0.5.0 → 0.6.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
2
  SHA256:
3
- metadata.gz: 38e4709c50ec6cda0bea24aceabcdf60c262b66b42e3c3b0739e4c730eb90754
4
- data.tar.gz: 5a8b4049867b425bd37125fee9e708e6dc51d6664e8b17fb7e691a374197acdc
3
+ metadata.gz: f42f2fbcbe9b84d8350c7000d2b0ca020cb6dd1cea5e1052589d496c6a508ed8
4
+ data.tar.gz: 3870591b45c379d9d313eb3dd5b753b299e1b794700b84b0ba5be37ba99e45d9
5
5
  SHA512:
6
- metadata.gz: 056f6501fba26c75b7eb05eedb9d4661623df47393777c654c5519706e4f2677df2b40c48aafeb9628e0d70fd0559ba45400a664cc14a3ca810955784b381ab9
7
- data.tar.gz: def915b06a2613a097f90baa0484dda876fae66048445c99171d446852cd659599a9bb09ede5aa71fd4f9a5f13d4ba5dfc705e2bce6c11955167e61aa2dcadca
6
+ metadata.gz: c12cef27a2b08b16578c136bcd64b65c3f432df57f812decd735e38af71256d7034fcd0846345221e7edd0a336b3b06dd31b7427b74526294aa59ab24848f092
7
+ data.tar.gz: 1d47e89c6b8cb2186708c9925f02c0fddae0c101076a62861ccdccce85140e32bc38524b831380fb47d851d65634581e05d754648293e4f549e9f81a3cfabffb
data/README.md CHANGED
@@ -55,6 +55,8 @@ The template file path (relative to the workidir top) for pull requests
55
55
  created. Its first line is used for the PR title, the rest for the body. This
56
56
  is an ERB template.
57
57
 
58
+ You can specify this value by `GIT_PR_RELEASE_TEMPLATE` environment variable.
59
+
58
60
  If not specified, the content below is used as the template (embedded in the code):
59
61
 
60
62
  ```erb
@@ -69,6 +71,8 @@ Release <%= Time.now %>
69
71
  The labels list for adding to pull requests created.
70
72
  This value should be comma-separated strings.
71
73
 
74
+ You can specify this value by `GIT_PR_RELEASE_LABELS` environment variable.
75
+
72
76
  If not specified, any labels will not be added for PRs.
73
77
 
74
78
 
data/bin/git-pr-release CHANGED
@@ -131,7 +131,7 @@ def build_pr_title_and_body(release_pr, merged_prs, changed_files)
131
131
 
132
132
  template = DEFAULT_PR_TEMPLATE
133
133
 
134
- if path = git_config('template')
134
+ if path = ENV.fetch('GIT_PR_RELEASE_TEMPLATE') { git_config('template') }
135
135
  template_path = File.join(git('rev-parse', '--show-toplevel').first.chomp, path)
136
136
  template = File.read(template_path)
137
137
  end
@@ -376,7 +376,7 @@ unless updated_pull_request
376
376
  exit 3
377
377
  end
378
378
 
379
- labels = git_config('labels')
379
+ labels = ENV.fetch('GIT_PR_RELEASE_LABELS') { git_config('labels') }
380
380
  if not labels.nil? and not labels.empty?
381
381
  labels = labels.split(/\s*,\s*/)
382
382
  labeled_pull_request = client.add_labels_to_an_issue(
@@ -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.5.0'
7
+ spec.version = '0.6.0'
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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - motemen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-10 00:00:00.000000000 Z
11
+ date: 2018-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.7.6
105
+ rubygems_version: 2.7.8
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Creates a release pull request