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 +4 -4
- data/.circleci/config.yml +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/rubocop_challenger/cli.rb +9 -1
- data/lib/rubocop_challenger/version.rb +1 -1
- data/lib/templates/checklist.md.erb +14 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df13c863fa288bb2d0f0eb2988cb7d6b56a36f9ec1033df39872cbc4c8ced7e9
|
|
4
|
+
data.tar.gz: 39958e9d36eb0b54bb86b29a59e5211b7457175501c714103078f681d23e9075
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
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
|
|
108
|
+
Github::PrTemplate
|
|
109
|
+
.new(rule, options[:template])
|
|
110
|
+
.generate_pullrequest_markdown
|
|
103
111
|
end
|
|
104
112
|
|
|
105
113
|
def timestamp
|
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.
|
|
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:
|