rubocop_challenger 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fff84726b4d75435e86fbf6fbb5b1fd952342b551b176da80bc16a10714e8b1
4
- data.tar.gz: 904703215d563c6e455a15041855fe64e2581fbbbf18f0fca66ba799590f9144
3
+ metadata.gz: df13c863fa288bb2d0f0eb2988cb7d6b56a36f9ec1033df39872cbc4c8ced7e9
4
+ data.tar.gz: 39958e9d36eb0b54bb86b29a59e5211b7457175501c714103078f681d23e9075
5
5
  SHA512:
6
- metadata.gz: 963adadcbabc1afbbbee442e8120a0c996920652ba4145d8f6cc30c632683eaca3132238007abff45287321e6dd4c12d28afbe2e4bfa27bb8f2aecaeffca2879
7
- data.tar.gz: af5eff9a6f6b52974059b4990ba80f2f55a5c30069c94a694c39957d1c6a6ff13645072276865c2f8511d869802982b9c247b32ebe3b649924323568c1e2c591
6
+ metadata.gz: e02df0be6b571e1c499a8cad081e18b9f41f60c1dc0dfa5578e19ce5eafd2ce1e8204ddce80b504011a78f263163c396a3cb0de40392b5e548e5d2052ef8ffdc
7
+ data.tar.gz: 8aad31a24237ef4a1ed95627854f723f2926c20e4beb2a0c71daa6786001ddc3831c9d4ead9138d5377a1f955cabeaecd0cffc22052143e151ddc3908f0ed436
data/.circleci/config.yml CHANGED
@@ -95,6 +95,7 @@ jobs:
95
95
  --email=ryz310@gmail.com \
96
96
  --name=ryz310 \
97
97
  --mode=random \
98
+ --labels='rubocop challenge' 'in progress' \
98
99
  --regenerate-rubocop-todo \
99
100
  --no-commit
100
101
 
@@ -111,6 +112,8 @@ jobs:
111
112
  rubocop_challenger go \
112
113
  --email=ryz310@gmail.com \
113
114
  --name=ryz310 \
115
+ --template=./lib/templates/checklist.md.erb \
116
+ --labels='rubocop challenge' 'in progress' \
114
117
  --regenerate-rubocop-todo
115
118
 
116
119
  release:
@@ -157,6 +160,9 @@ workflows:
157
160
  branches:
158
161
  only:
159
162
  - production
163
+ - rubocop_challenge:
164
+ requires:
165
+ - release
160
166
 
161
167
  challenge:
162
168
  triggers:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop_challenger (0.2.1)
4
+ rubocop_challenger (0.3.0)
5
5
  pr-daikou (~> 0.2.0)
6
6
  rubocop
7
7
  rubocop-rspec
data/README.md CHANGED
@@ -87,6 +87,7 @@ Options:
87
87
  --name=NAME # Pull Request committer name
88
88
  f, [--file-path=FILE_PATH] # Set your ".rubocop_todo.yml" path
89
89
  # Default: .rubocop_todo.yml
90
+ t, [--template=TEMPLATE] # Pull Request template `erb` file path.You can use variable that `title`, `rubydoc_url` and `description` into the erb file.
90
91
  [--mode=MODE] # Mode to select deletion target. You can choice "most_occurrence", "least_occurrence", or "random"
91
92
  # Default: most_occurrence
92
93
  [--base=BASE] # Base branch of Pull Request
@@ -18,6 +18,12 @@ module RubocopChallenger
18
18
  default: '.rubocop_todo.yml',
19
19
  aliases: :f,
20
20
  desc: 'Set your ".rubocop_todo.yml" path'
21
+ option :template,
22
+ type: :string,
23
+ aliases: :t,
24
+ desc: 'Pull Request template `erb` file path.' \
25
+ 'You can use variable that `title`, `rubydoc_url` and ' \
26
+ '`description` into the erb file.'
21
27
  option :mode,
22
28
  type: :string,
23
29
  default: 'most_occurrence',
@@ -99,7 +105,9 @@ module RubocopChallenger
99
105
  end
100
106
 
101
107
  def pr_template(rule)
102
- Github::PrTemplate.new(rule).generate_pullrequest_markdown
108
+ Github::PrTemplate
109
+ .new(rule, options[:template])
110
+ .generate_pullrequest_markdown
103
111
  end
104
112
 
105
113
  def timestamp
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopChallenger
4
- VERSION = '0.2.1'
4
+ VERSION = '0.3.0'
5
5
  end
@@ -0,0 +1,14 @@
1
+ # Rubocop challenge!
2
+
3
+ [<%= title %>](<%= rubydoc_url %>)
4
+
5
+ ## Description
6
+
7
+ <% description.each_line do |line| -%>
8
+ > <%= line.chomp %>
9
+ <% end -%>
10
+
11
+ ## Checklist
12
+
13
+ - [ ] Operation check
14
+ - [ ] Team agreement
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_challenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryosuke_sato
@@ -158,6 +158,7 @@ files:
158
158
  - lib/rubocop_challenger/rubocop/todo_reader.rb
159
159
  - lib/rubocop_challenger/rubocop/todo_writer.rb
160
160
  - lib/rubocop_challenger/version.rb
161
+ - lib/templates/checklist.md.erb
161
162
  - lib/templates/default.md.erb
162
163
  homepage: https://github.com/ryz310/rubocop_challenger
163
164
  licenses: