pr_comet 0.3.1 → 0.6.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 +24 -21
- data/.gem_comet.yml +10 -1
- data/.github/dependabot.yml +19 -0
- data/.rubocop.yml +3 -3
- data/.rubocop_challenge.yml +3 -0
- data/.rubocop_todo.yml +10 -3
- data/CHANGELOG.md +109 -27
- data/Gemfile.lock +84 -53
- data/lib/pr_comet/command_line.rb +4 -2
- data/lib/pr_comet/git/command.rb +2 -1
- data/lib/pr_comet/version.rb +1 -1
- data/lib/pr_comet.rb +8 -6
- data/pr_comet.gemspec +2 -2
- metadata +11 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77589286f546a554d6b79f093d278ca0e4584849dc9f5e866f348a9352c08db2
|
|
4
|
+
data.tar.gz: 77eb62d799e25a8ee8e1329044a225e76047a12df04aed1e5f7eb0c291e3089c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48beaa2b233ee327ffda29761d180b35566d5444dc55e67e27db3a76800b3769b963efcd9f1b3dbf7d5f6d0d79fdae7c5e290a56913679d257f31b1f6fefdf8c
|
|
7
|
+
data.tar.gz: 276d72a911940603928768debfa233694b22c47950632135c6b23352847f245230eb9c94783059c142909c629fa8e248d027fdb7867e8f4542c89d8e994a8425
|
data/.circleci/config.yml
CHANGED
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
version: 2.1
|
|
6
6
|
|
|
7
7
|
orbs:
|
|
8
|
-
ruby-orbs: sue445/ruby-orbs@1.
|
|
8
|
+
ruby-orbs: sue445/ruby-orbs@1.6.2
|
|
9
9
|
code-climate: rvla/code-climate@0.0.2
|
|
10
10
|
|
|
11
11
|
references:
|
|
12
12
|
- &ruby_version
|
|
13
13
|
ruby_version:
|
|
14
14
|
type: enum
|
|
15
|
-
enum: [
|
|
16
|
-
default:
|
|
15
|
+
enum: ["2.6", "2.7", "3.0", "3.1"]
|
|
16
|
+
default: "3.1"
|
|
17
17
|
|
|
18
18
|
executors:
|
|
19
19
|
default:
|
|
20
20
|
parameters:
|
|
21
21
|
<<: *ruby_version
|
|
22
22
|
docker:
|
|
23
|
-
|
|
23
|
+
- image: cimg/ruby:<< parameters.ruby_version >>
|
|
24
24
|
working_directory: ~/repo
|
|
25
25
|
|
|
26
26
|
commands:
|
|
@@ -42,7 +42,7 @@ commands:
|
|
|
42
42
|
- code-climate/format-coverage:
|
|
43
43
|
input-type: simplecov
|
|
44
44
|
prefix: $(readlink -f .)
|
|
45
|
-
coverage-file: coverage
|
|
45
|
+
coverage-file: coverage/coverage.json
|
|
46
46
|
output: coverage/codeclimate.$CIRCLE_BUILD_NUM.json
|
|
47
47
|
- persist_to_workspace:
|
|
48
48
|
root: coverage
|
|
@@ -59,7 +59,7 @@ commands:
|
|
|
59
59
|
name: Run RuboCop
|
|
60
60
|
command: bundle exec rubocop
|
|
61
61
|
yardoc:
|
|
62
|
-
description:
|
|
62
|
+
description: "Generate YARDoc"
|
|
63
63
|
steps:
|
|
64
64
|
- run: bundle exec yardoc -o ./yardoc
|
|
65
65
|
- store_artifacts:
|
|
@@ -75,7 +75,7 @@ commands:
|
|
|
75
75
|
- run:
|
|
76
76
|
name: Rubocop Challenge
|
|
77
77
|
command: |
|
|
78
|
-
gem install rubocop_challenger
|
|
78
|
+
gem install rubocop_challenger
|
|
79
79
|
rubocop_challenger go --email=ryz310@gmail.com --name=ryz310
|
|
80
80
|
release:
|
|
81
81
|
description: Release to RubyGems.org
|
|
@@ -97,6 +97,9 @@ commands:
|
|
|
97
97
|
<<: *ruby_version
|
|
98
98
|
steps:
|
|
99
99
|
- checkout
|
|
100
|
+
- run:
|
|
101
|
+
name: Install bundler v2.x for ruby 2.5 & 2.6
|
|
102
|
+
command: gem install bundler
|
|
100
103
|
- ruby-orbs/bundle-install:
|
|
101
104
|
cache_key_prefix: v1-dependencies-<< parameters.ruby_version >>
|
|
102
105
|
test_and_build:
|
|
@@ -153,32 +156,32 @@ workflows:
|
|
|
153
156
|
commit:
|
|
154
157
|
jobs:
|
|
155
158
|
- build:
|
|
156
|
-
name: build_on_ruby_2.
|
|
157
|
-
ruby_version:
|
|
159
|
+
name: build_on_ruby_2.6
|
|
160
|
+
ruby_version: "2.6"
|
|
158
161
|
- build:
|
|
159
|
-
name: build_on_ruby_2.
|
|
160
|
-
ruby_version:
|
|
162
|
+
name: build_on_ruby_2.7
|
|
163
|
+
ruby_version: "2.7"
|
|
161
164
|
- build:
|
|
162
|
-
name:
|
|
163
|
-
ruby_version:
|
|
165
|
+
name: build_on_ruby_3.0
|
|
166
|
+
ruby_version: "3.0"
|
|
164
167
|
- build:
|
|
165
|
-
name:
|
|
166
|
-
ruby_version:
|
|
168
|
+
name: build_on_ruby_3.1
|
|
169
|
+
ruby_version: "3.1"
|
|
167
170
|
- rubocop
|
|
168
171
|
- yardoc
|
|
169
172
|
- upload-coverage:
|
|
170
173
|
requires:
|
|
171
|
-
- build_on_ruby_2.4
|
|
172
|
-
- build_on_ruby_2.5
|
|
173
174
|
- build_on_ruby_2.6
|
|
174
|
-
-
|
|
175
|
+
- build_on_ruby_2.7
|
|
176
|
+
- build_on_ruby_3.0
|
|
177
|
+
- build_on_ruby_3.1
|
|
175
178
|
- release:
|
|
176
179
|
context: RubyGems API Key
|
|
177
180
|
requires:
|
|
178
|
-
- build_on_ruby_2.4
|
|
179
|
-
- build_on_ruby_2.5
|
|
180
181
|
- build_on_ruby_2.6
|
|
181
|
-
-
|
|
182
|
+
- build_on_ruby_2.7
|
|
183
|
+
- build_on_ruby_3.0
|
|
184
|
+
- build_on_ruby_3.1
|
|
182
185
|
- rubocop
|
|
183
186
|
filters:
|
|
184
187
|
branches:
|
data/.gem_comet.yml
CHANGED
|
@@ -6,10 +6,19 @@
|
|
|
6
6
|
# $ gem_comet changelog
|
|
7
7
|
# $ gem_comet versions
|
|
8
8
|
|
|
9
|
-
version: 1.
|
|
9
|
+
version: 1.2
|
|
10
10
|
|
|
11
11
|
release:
|
|
12
12
|
base_branch: master
|
|
13
13
|
release_branch: production
|
|
14
14
|
version_file_path: lib/pr_comet/version.rb
|
|
15
15
|
changelog_file_path: CHANGELOG.md
|
|
16
|
+
changelog:
|
|
17
|
+
categories:
|
|
18
|
+
- Feature
|
|
19
|
+
- Bugfix
|
|
20
|
+
- Security
|
|
21
|
+
- Breaking Change
|
|
22
|
+
- Rubocop Challenge
|
|
23
|
+
- Dependabot
|
|
24
|
+
- Misc
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: bundler
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: daily
|
|
7
|
+
time: "08:00"
|
|
8
|
+
timezone: Japan
|
|
9
|
+
open-pull-requests-limit: 10
|
|
10
|
+
reviewers:
|
|
11
|
+
- ryz310
|
|
12
|
+
assignees:
|
|
13
|
+
- ryz310
|
|
14
|
+
labels:
|
|
15
|
+
- dependabot
|
|
16
|
+
ignore:
|
|
17
|
+
- dependency-name: simplecov
|
|
18
|
+
versions:
|
|
19
|
+
- ">= 0.19.a, < 0.20"
|
data/.rubocop.yml
CHANGED
|
@@ -5,12 +5,12 @@ require:
|
|
|
5
5
|
inherit_from: .rubocop_todo.yml
|
|
6
6
|
|
|
7
7
|
AllCops:
|
|
8
|
-
TargetRubyVersion: 2.
|
|
8
|
+
TargetRubyVersion: 2.6
|
|
9
9
|
|
|
10
10
|
Metrics/BlockLength:
|
|
11
11
|
Exclude:
|
|
12
|
-
-
|
|
13
|
-
-
|
|
12
|
+
- "pr_comet.gemspec"
|
|
13
|
+
- "spec/**/*"
|
|
14
14
|
|
|
15
15
|
RSpec/NestedGroups:
|
|
16
16
|
Max: 4
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2022-04-25 23:31:08 UTC using RuboCop version 1.28.2.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
9
|
# Offense count: 1
|
|
10
|
-
|
|
10
|
+
# Configuration parameters: Include.
|
|
11
|
+
# Include: **/*.gemspec
|
|
12
|
+
Gemspec/RequiredRubyVersion:
|
|
11
13
|
Exclude:
|
|
12
|
-
- '
|
|
14
|
+
- 'pr_comet.gemspec'
|
|
15
|
+
|
|
16
|
+
# Offense count: 15
|
|
17
|
+
# Configuration parameters: AllowSubject.
|
|
18
|
+
RSpec/MultipleMemoizedHelpers:
|
|
19
|
+
Max: 9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,59 +1,141 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
+
## v0.6.0 (May 08, 2022)
|
|
4
|
+
|
|
5
|
+
### Feature
|
|
6
|
+
|
|
7
|
+
- [#321](https://github.com/ryz310/pr_comet/pull/321) display git status on error. ([@mathieujobin](https://github.com/mathieujobin))
|
|
8
|
+
|
|
9
|
+
### Breaking Change
|
|
10
|
+
|
|
11
|
+
- [#323](https://github.com/ryz310/pr_comet/pull/323) Support ruby 3.1 and close 2.5 ([@ryz310](https://github.com/ryz310))
|
|
12
|
+
|
|
13
|
+
### Rubocop Challenge
|
|
14
|
+
|
|
15
|
+
- [#320](https://github.com/ryz310/pr_comet/pull/320) Re-generate .rubocop_todo.yml with RuboCop v1.28.2 ([@ryz310](https://github.com/ryz310))
|
|
16
|
+
|
|
17
|
+
### Dependabot
|
|
18
|
+
|
|
19
|
+
- [#247](https://github.com/ryz310/pr_comet/pull/247) ryz310/dependabot/bundler/octokit-4.21.0 ([@ryz310](https://github.com/ryz310))
|
|
20
|
+
- [#278](https://github.com/ryz310/pr_comet/pull/278) Bump rake from 13.0.5 to 13.0.6 ([@ryz310](https://github.com/ryz310))
|
|
21
|
+
- [#302](https://github.com/ryz310/pr_comet/pull/302) Bump yard from 0.9.26 to 0.9.27 ([@ryz310](https://github.com/ryz310))
|
|
22
|
+
- [#308](https://github.com/ryz310/pr_comet/pull/308) ryz310/dependabot/bundler/rspec_junit_formatter-0.5.1 ([@ryz310](https://github.com/ryz310))
|
|
23
|
+
- [#309](https://github.com/ryz310/pr_comet/pull/309) Bump rainbow from 3.0.0 to 3.1.1 ([@ryz310](https://github.com/ryz310))
|
|
24
|
+
- [#310](https://github.com/ryz310/pr_comet/pull/310) Bump octokit from 4.21.0 to 4.22.0 ([@ryz310](https://github.com/ryz310))
|
|
25
|
+
- [#314](https://github.com/ryz310/pr_comet/pull/314) Bump rspec from 3.10.0 to 3.11.0 ([@ryz310](https://github.com/ryz310))
|
|
26
|
+
|
|
27
|
+
### Misc
|
|
28
|
+
|
|
29
|
+
- [#229](https://github.com/ryz310/pr_comet/pull/229) Update ruby-orbs orb to v1.6.2 ([@ryz310](https://github.com/ryz310))
|
|
30
|
+
|
|
31
|
+
## v0.5.1 (Jan 11, 2021)
|
|
32
|
+
|
|
33
|
+
### Bugfix
|
|
34
|
+
|
|
35
|
+
- [#220](https://github.com/ryz310/pr_comet/pull/220) Fix verbose option ([@ryz310](https://github.com/ryz310))
|
|
36
|
+
|
|
37
|
+
### Dependabot
|
|
38
|
+
|
|
39
|
+
- [#199](https://github.com/ryz310/pr_comet/pull/199) Update bundler requirement from ~> 1.16 to ~> 2.2 ([@ryz310](https://github.com/ryz310))
|
|
40
|
+
- [#219](https://github.com/ryz310/pr_comet/pull/219) ryz310/dependabot/bundler/rubocop-1.8.1 ([@ryz310](https://github.com/ryz310))
|
|
41
|
+
|
|
42
|
+
## v0.5.0 (Jan 11, 2021)
|
|
43
|
+
|
|
44
|
+
### Feature
|
|
45
|
+
|
|
46
|
+
- [#216](https://github.com/ryz310/pr_comet/pull/216) Add verbose option ([@ryz310](https://github.com/ryz310))
|
|
47
|
+
|
|
48
|
+
### Dependabot
|
|
49
|
+
|
|
50
|
+
- [#215](https://github.com/ryz310/pr_comet/pull/215) Update simplecov requirement from = 0.17.1 to = 0.21.2 ([@ryz310](https://github.com/ryz310))
|
|
51
|
+
- [#214](https://github.com/ryz310/pr_comet/pull/214) ryz310/dependabot/bundler/rubocop-1.8.0 ([@ryz310](https://github.com/ryz310))
|
|
52
|
+
|
|
53
|
+
## v0.4.0 (Jan 04, 2021)
|
|
54
|
+
|
|
55
|
+
### Feature
|
|
56
|
+
|
|
57
|
+
- [#210](https://github.com/ryz310/pr_comet/pull/210) Support ruby 3.0 ([@ryz310](https://github.com/ryz310))
|
|
58
|
+
|
|
59
|
+
### Breaking Change
|
|
60
|
+
|
|
61
|
+
- [#176](https://github.com/ryz310/pr_comet/pull/176) End of support for Ruby 2.4 ([@ryz310](https://github.com/ryz310))
|
|
62
|
+
|
|
63
|
+
### Rubocop Challenge
|
|
64
|
+
|
|
65
|
+
- [#127](https://github.com/ryz310/pr_comet/pull/127) Style/IfUnlessModifier-20200523233029 ([@ryz310](https://github.com/ryz310))
|
|
66
|
+
- [#129](https://github.com/ryz310/pr_comet/pull/129) Performance/StartWith-20200525233033 ([@ryz310](https://github.com/ryz310))
|
|
67
|
+
- [#204](https://github.com/ryz310/pr_comet/pull/204) Re-generate .rubocop_todo.yml with RuboCop v1.7.0 ([@ryz310](https://github.com/ryz310))
|
|
68
|
+
|
|
69
|
+
### Dependabot
|
|
70
|
+
|
|
71
|
+
- [#110](https://github.com/ryz310/pr_comet/pull/110) ryz310/dependabot/bundler/pry-byebug-3.9.0 ([@ryz310](https://github.com/ryz310))
|
|
72
|
+
- [#174](https://github.com/ryz310/pr_comet/pull/174) ryz310/dependabot/bundler/rspec-3.10.0 ([@ryz310](https://github.com/ryz310))
|
|
73
|
+
- [#198](https://github.com/ryz310/pr_comet/pull/198) ryz310/dependabot/bundler/rubocop-1.6.1 ([@ryz310](https://github.com/ryz310))
|
|
74
|
+
- [#201](https://github.com/ryz310/pr_comet/pull/201) ryz310/dependabot/bundler/rubocop-rspec-2.1.0 ([@ryz310](https://github.com/ryz310))
|
|
75
|
+
- [#202](https://github.com/ryz310/pr_comet/pull/202) ryz310/dependabot/bundler/rake-13.0.2 ([@ryz310](https://github.com/ryz310))
|
|
76
|
+
- [#205](https://github.com/ryz310/pr_comet/pull/205) ryz310/dependabot/bundler/yard-0.9.26 ([@ryz310](https://github.com/ryz310))
|
|
77
|
+
- [#206](https://github.com/ryz310/pr_comet/pull/206) ryz310/dependabot/bundler/octokit-4.20.0 ([@ryz310](https://github.com/ryz310))
|
|
78
|
+
- [#209](https://github.com/ryz310/pr_comet/pull/209) ryz310/dependabot/bundler/rubocop-performance-1.9.2 ([@ryz310](https://github.com/ryz310))
|
|
79
|
+
|
|
80
|
+
### Misc
|
|
81
|
+
|
|
82
|
+
- [#91](https://github.com/ryz310/pr_comet/pull/91) Update ruby-orbs orb to v1.6.0 ([@ryz310](https://github.com/ryz310))
|
|
83
|
+
- [#111](https://github.com/ryz310/pr_comet/pull/111) Edit dependabot configuration ([@ryz310](https://github.com/ryz310))
|
|
84
|
+
|
|
3
85
|
## v0.3.1 (Nov 02, 2019)
|
|
4
86
|
|
|
5
87
|
### Feature
|
|
6
88
|
|
|
7
|
-
|
|
89
|
+
- [#60](https://github.com/ryz310/pr_comet/pull/60) Stub pr comet ([@ryz310](https://github.com/ryz310))
|
|
8
90
|
|
|
9
|
-
###
|
|
91
|
+
### Rubocop Challenge
|
|
10
92
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
93
|
+
- [#37](https://github.com/ryz310/pr_comet/pull/37) Re-generate .rubocop_todo.yml with RuboCop v0.73.0 ([@ryz310](https://github.com/ryz310))
|
|
94
|
+
- [#38](https://github.com/ryz310/pr_comet/pull/38) Performance/RegexpMatch-20190729233036 ([@ryz310](https://github.com/ryz310))
|
|
95
|
+
- [#39](https://github.com/ryz310/pr_comet/pull/39) Re-generate .rubocop_todo.yml with RuboCop v0.74.0 ([@ryz310](https://github.com/ryz310))
|
|
96
|
+
- [#45](https://github.com/ryz310/pr_comet/pull/45) Re-generate .rubocop_todo.yml with RuboCop v0.75.0 ([@ryz310](https://github.com/ryz310))
|
|
97
|
+
- [#50](https://github.com/ryz310/pr_comet/pull/50) Re-generate .rubocop_todo.yml with RuboCop v0.75.1 ([@ryz310](https://github.com/ryz310))
|
|
98
|
+
- [#55](https://github.com/ryz310/pr_comet/pull/55) Re-generate .rubocop_todo.yml with RuboCop v0.76.0 ([@ryz310](https://github.com/ryz310))
|
|
17
99
|
|
|
18
100
|
### Misc
|
|
19
101
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
102
|
+
- [#44](https://github.com/ryz310/pr_comet/pull/44) Bump rubocop-rspec from 1.34.1 to 1.36.0 ([@ryz310](https://github.com/ryz310))
|
|
103
|
+
- [#40](https://github.com/ryz310/pr_comet/pull/40) ryz310/dependabot/bundler/simplecov-0.17.1 ([@ryz310](https://github.com/ryz310))
|
|
104
|
+
- [#43](https://github.com/ryz310/pr_comet/pull/43) ryz310/dependabot/bundler/rake-tw-13.0 ([@ryz310](https://github.com/ryz310))
|
|
105
|
+
- [#48](https://github.com/ryz310/pr_comet/pull/48) ryz310/dependabot/bundler/rspec-3.9.0 ([@ryz310](https://github.com/ryz310))
|
|
106
|
+
- [#47](https://github.com/ryz310/pr_comet/pull/47) ryz310/dependabot/bundler/rubocop-performance-1.5.0 ([@ryz310](https://github.com/ryz310))
|
|
107
|
+
- [#53](https://github.com/ryz310/pr_comet/pull/53) Configure Renovate ([@ryz310](https://github.com/ryz310))
|
|
108
|
+
- [#56](https://github.com/ryz310/pr_comet/pull/56) Update ruby-orbs orb to v1.4.4 ([@ryz310](https://github.com/ryz310))
|
|
109
|
+
- [#61](https://github.com/ryz310/pr_comet/pull/61) Install gem_comet :comet: ([@ryz310](https://github.com/ryz310))
|
|
28
110
|
|
|
29
111
|
## v0.3.0 (Jul 12, 2019)
|
|
30
112
|
|
|
31
113
|
### Feature
|
|
32
114
|
|
|
33
|
-
|
|
115
|
+
- [#34](https://github.com/ryz310/pr_comet/pull/34) Support blank PR creation ([@ryz310](https://github.com/ryz310))
|
|
34
116
|
|
|
35
117
|
## v0.2.1 (Jul 12, 2019)
|
|
36
118
|
|
|
37
119
|
### Misc
|
|
38
120
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
121
|
+
- [#28](https://github.com/ryz310/pr_comet/pull/28) Re-generate .rubocop_todo.yml with RuboCop v0.72.0 ([@ryz310](https://github.com/ryz310))
|
|
122
|
+
- [#29](https://github.com/ryz310/pr_comet/pull/29) Migrate cirecle ci config to v2.1 ([@ryz310](https://github.com/ryz310))
|
|
123
|
+
- [#30](https://github.com/ryz310/pr_comet/pull/30) Improvement of the test coverage ([@ryz310](https://github.com/ryz310))
|
|
42
124
|
|
|
43
125
|
## v0.2.0 (Jun 09, 2019)
|
|
44
126
|
|
|
45
127
|
### Feature
|
|
46
128
|
|
|
47
|
-
|
|
48
|
-
|
|
129
|
+
- [#16](https://github.com/ryz310/pr_comet/pull/16) Use rainbow gem ([@ryz310](https://github.com/ryz310))
|
|
130
|
+
- [#18](https://github.com/ryz310/pr_comet/pull/18) Support GitHub project ([@ryz310](https://github.com/ryz310))
|
|
49
131
|
|
|
50
132
|
### Misc
|
|
51
133
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
134
|
+
- [#5](https://github.com/ryz310/pr_comet/pull/5) Re-generate .rubocop_todo.yml with RuboCop v0.68.0 ([@ryz310](https://github.com/ryz310))
|
|
135
|
+
- [#12](https://github.com/ryz310/pr_comet/pull/12) Re-generate .rubocop_todo.yml with RuboCop v0.68.1 ([@ryz310](https://github.com/ryz310))
|
|
136
|
+
- [#13](https://github.com/ryz310/pr_comet/pull/13) Re-generate .rubocop_todo.yml with RuboCop v0.69.0 ([@ryz310](https://github.com/ryz310))
|
|
137
|
+
- [#15](https://github.com/ryz310/pr_comet/pull/15) Re-generate .rubocop_todo.yml with RuboCop v0.70.0 ([@ryz310](https://github.com/ryz310))
|
|
138
|
+
- [#17](https://github.com/ryz310/pr_comet/pull/17) Re-generate .rubocop_todo.yml with RuboCop v0.71.0 ([@ryz310](https://github.com/ryz310))
|
|
57
139
|
|
|
58
140
|
## v0.1.1 (Apr 08, 2019)
|
|
59
141
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,83 +1,114 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
pr_comet (0.
|
|
4
|
+
pr_comet (0.6.0)
|
|
5
5
|
octokit
|
|
6
6
|
rainbow
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
addressable (2.
|
|
11
|
+
addressable (2.8.0)
|
|
12
12
|
public_suffix (>= 2.0.2, < 5.0)
|
|
13
|
-
ast (2.4.
|
|
14
|
-
byebug (11.
|
|
15
|
-
coderay (1.1.
|
|
16
|
-
diff-lcs (1.
|
|
17
|
-
docile (1.
|
|
18
|
-
faraday (
|
|
13
|
+
ast (2.4.2)
|
|
14
|
+
byebug (11.1.3)
|
|
15
|
+
coderay (1.1.3)
|
|
16
|
+
diff-lcs (1.5.0)
|
|
17
|
+
docile (1.4.0)
|
|
18
|
+
faraday (1.10.0)
|
|
19
|
+
faraday-em_http (~> 1.0)
|
|
20
|
+
faraday-em_synchrony (~> 1.0)
|
|
21
|
+
faraday-excon (~> 1.1)
|
|
22
|
+
faraday-httpclient (~> 1.0)
|
|
23
|
+
faraday-multipart (~> 1.0)
|
|
24
|
+
faraday-net_http (~> 1.0)
|
|
25
|
+
faraday-net_http_persistent (~> 1.0)
|
|
26
|
+
faraday-patron (~> 1.0)
|
|
27
|
+
faraday-rack (~> 1.0)
|
|
28
|
+
faraday-retry (~> 1.0)
|
|
29
|
+
ruby2_keywords (>= 0.0.4)
|
|
30
|
+
faraday-em_http (1.0.0)
|
|
31
|
+
faraday-em_synchrony (1.0.0)
|
|
32
|
+
faraday-excon (1.1.0)
|
|
33
|
+
faraday-httpclient (1.0.1)
|
|
34
|
+
faraday-multipart (1.0.3)
|
|
19
35
|
multipart-post (>= 1.2, < 3)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
36
|
+
faraday-net_http (1.0.1)
|
|
37
|
+
faraday-net_http_persistent (1.2.0)
|
|
38
|
+
faraday-patron (1.0.0)
|
|
39
|
+
faraday-rack (1.0.0)
|
|
40
|
+
faraday-retry (1.0.3)
|
|
41
|
+
method_source (1.0.0)
|
|
23
42
|
multipart-post (2.1.1)
|
|
24
|
-
octokit (4.
|
|
43
|
+
octokit (4.22.0)
|
|
44
|
+
faraday (>= 0.9)
|
|
25
45
|
sawyer (~> 0.8.0, >= 0.5.3)
|
|
26
|
-
parallel (1.
|
|
27
|
-
parser (
|
|
28
|
-
ast (~> 2.4.
|
|
29
|
-
pry (0.
|
|
30
|
-
coderay (~> 1.1
|
|
31
|
-
method_source (~>
|
|
32
|
-
pry-byebug (3.
|
|
46
|
+
parallel (1.22.1)
|
|
47
|
+
parser (3.1.2.0)
|
|
48
|
+
ast (~> 2.4.1)
|
|
49
|
+
pry (0.13.1)
|
|
50
|
+
coderay (~> 1.1)
|
|
51
|
+
method_source (~> 1.0)
|
|
52
|
+
pry-byebug (3.9.0)
|
|
33
53
|
byebug (~> 11.0)
|
|
34
|
-
pry (~> 0.
|
|
35
|
-
public_suffix (4.0.
|
|
36
|
-
rainbow (3.
|
|
37
|
-
rake (13.0.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
rspec-
|
|
42
|
-
|
|
43
|
-
rspec-
|
|
44
|
-
rspec-
|
|
54
|
+
pry (~> 0.13.0)
|
|
55
|
+
public_suffix (4.0.7)
|
|
56
|
+
rainbow (3.1.1)
|
|
57
|
+
rake (13.0.6)
|
|
58
|
+
regexp_parser (2.3.1)
|
|
59
|
+
rexml (3.2.5)
|
|
60
|
+
rspec (3.11.0)
|
|
61
|
+
rspec-core (~> 3.11.0)
|
|
62
|
+
rspec-expectations (~> 3.11.0)
|
|
63
|
+
rspec-mocks (~> 3.11.0)
|
|
64
|
+
rspec-core (3.11.0)
|
|
65
|
+
rspec-support (~> 3.11.0)
|
|
66
|
+
rspec-expectations (3.11.0)
|
|
45
67
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
46
|
-
rspec-support (~> 3.
|
|
47
|
-
rspec-mocks (3.
|
|
68
|
+
rspec-support (~> 3.11.0)
|
|
69
|
+
rspec-mocks (3.11.1)
|
|
48
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
49
|
-
rspec-support (~> 3.
|
|
50
|
-
rspec-support (3.
|
|
51
|
-
rspec_junit_formatter (0.
|
|
71
|
+
rspec-support (~> 3.11.0)
|
|
72
|
+
rspec-support (3.11.0)
|
|
73
|
+
rspec_junit_formatter (0.5.1)
|
|
52
74
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
53
|
-
rubocop (
|
|
54
|
-
jaro_winkler (~> 1.5.1)
|
|
75
|
+
rubocop (1.29.0)
|
|
55
76
|
parallel (~> 1.10)
|
|
56
|
-
parser (>=
|
|
77
|
+
parser (>= 3.1.0.0)
|
|
57
78
|
rainbow (>= 2.2.2, < 4.0)
|
|
79
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
80
|
+
rexml (>= 3.2.5, < 4.0)
|
|
81
|
+
rubocop-ast (>= 1.17.0, < 2.0)
|
|
58
82
|
ruby-progressbar (~> 1.7)
|
|
59
|
-
unicode-display_width (>= 1.4.0, <
|
|
60
|
-
rubocop-
|
|
61
|
-
|
|
62
|
-
rubocop-
|
|
63
|
-
rubocop (>= 0.
|
|
64
|
-
|
|
83
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
84
|
+
rubocop-ast (1.17.0)
|
|
85
|
+
parser (>= 3.1.1.0)
|
|
86
|
+
rubocop-performance (1.13.3)
|
|
87
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
88
|
+
rubocop-ast (>= 0.4.0)
|
|
89
|
+
rubocop-rspec (2.10.0)
|
|
90
|
+
rubocop (~> 1.19)
|
|
91
|
+
ruby-progressbar (1.11.0)
|
|
92
|
+
ruby2_keywords (0.0.5)
|
|
65
93
|
sawyer (0.8.2)
|
|
66
94
|
addressable (>= 2.3.5)
|
|
67
95
|
faraday (> 0.8, < 2.0)
|
|
68
|
-
simplecov (0.
|
|
96
|
+
simplecov (0.21.2)
|
|
69
97
|
docile (~> 1.1)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
simplecov-html (0.
|
|
73
|
-
|
|
74
|
-
|
|
98
|
+
simplecov-html (~> 0.11)
|
|
99
|
+
simplecov_json_formatter (~> 0.1)
|
|
100
|
+
simplecov-html (0.12.3)
|
|
101
|
+
simplecov_json_formatter (0.1.4)
|
|
102
|
+
unicode-display_width (2.1.0)
|
|
103
|
+
webrick (1.7.0)
|
|
104
|
+
yard (0.9.27)
|
|
105
|
+
webrick (~> 1.7.0)
|
|
75
106
|
|
|
76
107
|
PLATFORMS
|
|
77
108
|
ruby
|
|
78
109
|
|
|
79
110
|
DEPENDENCIES
|
|
80
|
-
bundler (~>
|
|
111
|
+
bundler (~> 2.2)
|
|
81
112
|
pr_comet!
|
|
82
113
|
pry-byebug
|
|
83
114
|
rake (~> 13.0)
|
|
@@ -86,8 +117,8 @@ DEPENDENCIES
|
|
|
86
117
|
rubocop
|
|
87
118
|
rubocop-performance
|
|
88
119
|
rubocop-rspec
|
|
89
|
-
simplecov
|
|
120
|
+
simplecov (= 0.21.2)
|
|
90
121
|
yard
|
|
91
122
|
|
|
92
123
|
BUNDLED WITH
|
|
93
|
-
|
|
124
|
+
2.2.32
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
class PrComet
|
|
4
4
|
# To execute command line. You should inherit this class to use.
|
|
5
5
|
module CommandLine
|
|
6
|
+
attr_reader :verbose
|
|
7
|
+
|
|
6
8
|
private
|
|
7
9
|
|
|
8
10
|
# Execute a command
|
|
@@ -10,10 +12,10 @@ class PrComet
|
|
|
10
12
|
# @param command [String] The command you want to execute
|
|
11
13
|
# @return [String] The result in the execution
|
|
12
14
|
def execute(command)
|
|
13
|
-
puts "$ #{command}"
|
|
15
|
+
puts "$ #{command}" if verbose
|
|
14
16
|
`#{command}`.chomp.tap do |result|
|
|
15
17
|
color = $CHILD_STATUS.success? ? :green : :red
|
|
16
|
-
puts Rainbow(result).color(color)
|
|
18
|
+
puts Rainbow(result).color(color) if verbose
|
|
17
19
|
end
|
|
18
20
|
end
|
|
19
21
|
end
|
data/lib/pr_comet/git/command.rb
CHANGED
|
@@ -6,9 +6,10 @@ class PrComet
|
|
|
6
6
|
class Command
|
|
7
7
|
include CommandLine
|
|
8
8
|
|
|
9
|
-
def initialize(user_name: nil, user_email: nil)
|
|
9
|
+
def initialize(user_name: nil, user_email: nil, verbose: false)
|
|
10
10
|
@user_name = user_name
|
|
11
11
|
@user_email = user_email
|
|
12
|
+
@verbose = verbose
|
|
12
13
|
end
|
|
13
14
|
|
|
14
15
|
def user_name
|
data/lib/pr_comet/version.rb
CHANGED
data/lib/pr_comet.rb
CHANGED
|
@@ -13,16 +13,16 @@ require 'pr_comet/github/client'
|
|
|
13
13
|
class PrComet
|
|
14
14
|
# @note You have to set ENV['GITHUB_ACCESS_TOKEN']
|
|
15
15
|
# @param base [String] The branch you want your changes pulled into
|
|
16
|
-
# @param branch [String] The branch where your changes are going to
|
|
17
|
-
# implement.
|
|
16
|
+
# @param branch [String] The branch where your changes are going to implement.
|
|
18
17
|
# @param user_name [String] The username to use for committer and author
|
|
19
18
|
# @param user_email [String] The email to use for committer and author
|
|
20
|
-
|
|
19
|
+
# @param verbose [Boolean] Displays executing commands
|
|
20
|
+
def initialize(base:, branch:, user_name: nil, user_email: nil, verbose: false)
|
|
21
21
|
raise "You have to set ENV['GITHUB_ACCESS_TOKEN']" if access_token.nil?
|
|
22
22
|
|
|
23
23
|
@base_branch = base
|
|
24
24
|
@topic_branch = branch
|
|
25
|
-
@git = Git::Command.new(user_name: user_name, user_email: user_email)
|
|
25
|
+
@git = Git::Command.new(user_name: user_name, user_email: user_email, verbose: verbose)
|
|
26
26
|
@github = Github::Client.new(access_token, git.remote_url('origin'))
|
|
27
27
|
@initial_sha1 = git.current_sha1
|
|
28
28
|
end
|
|
@@ -40,6 +40,8 @@ class PrComet
|
|
|
40
40
|
git.add('.')
|
|
41
41
|
git.commit(message)
|
|
42
42
|
result
|
|
43
|
+
rescue PrComet::Errors::ExistUncommittedModify
|
|
44
|
+
raise `git status`
|
|
43
45
|
end
|
|
44
46
|
|
|
45
47
|
# Create a pull request. You should call #commit before calling this method.
|
|
@@ -74,10 +76,10 @@ class PrComet
|
|
|
74
76
|
return false if options[:validate] && !git_condition_valid?
|
|
75
77
|
|
|
76
78
|
git.push(github_token_url, topic_branch)
|
|
77
|
-
pr_number = github.create_pull_request(generate_create_pr_options(options))
|
|
79
|
+
pr_number = github.create_pull_request(**generate_create_pr_options(**options))
|
|
78
80
|
github.add_labels(pr_number, *options[:labels]) unless options[:labels].nil?
|
|
79
81
|
unless options[:project_column_name].nil?
|
|
80
|
-
github.add_to_project(pr_number, generate_add_to_project_options(options))
|
|
82
|
+
github.add_to_project(pr_number, **generate_add_to_project_options(**options))
|
|
81
83
|
end
|
|
82
84
|
true
|
|
83
85
|
end
|
data/pr_comet.gemspec
CHANGED
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.add_runtime_dependency 'octokit'
|
|
26
26
|
spec.add_runtime_dependency 'rainbow'
|
|
27
27
|
|
|
28
|
-
spec.add_development_dependency 'bundler', '~>
|
|
28
|
+
spec.add_development_dependency 'bundler', '~> 2.2'
|
|
29
29
|
spec.add_development_dependency 'pry-byebug'
|
|
30
30
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
31
31
|
spec.add_development_dependency 'rspec'
|
|
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
spec.add_development_dependency 'rubocop'
|
|
34
34
|
spec.add_development_dependency 'rubocop-performance'
|
|
35
35
|
spec.add_development_dependency 'rubocop-rspec'
|
|
36
|
-
spec.add_development_dependency 'simplecov'
|
|
36
|
+
spec.add_development_dependency 'simplecov', '0.21.2'
|
|
37
37
|
spec.add_development_dependency 'yard'
|
|
38
38
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pr_comet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ryz310
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: octokit
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
47
|
+
version: '2.2'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
54
|
+
version: '2.2'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: pry-byebug
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -154,16 +154,16 @@ dependencies:
|
|
|
154
154
|
name: simplecov
|
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
|
156
156
|
requirements:
|
|
157
|
-
- -
|
|
157
|
+
- - '='
|
|
158
158
|
- !ruby/object:Gem::Version
|
|
159
|
-
version:
|
|
159
|
+
version: 0.21.2
|
|
160
160
|
type: :development
|
|
161
161
|
prerelease: false
|
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
|
164
|
-
- -
|
|
164
|
+
- - '='
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
|
-
version:
|
|
166
|
+
version: 0.21.2
|
|
167
167
|
- !ruby/object:Gem::Dependency
|
|
168
168
|
name: yard
|
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -188,9 +188,11 @@ files:
|
|
|
188
188
|
- ".circleci/config.yml"
|
|
189
189
|
- ".envrc.skeleton"
|
|
190
190
|
- ".gem_comet.yml"
|
|
191
|
+
- ".github/dependabot.yml"
|
|
191
192
|
- ".gitignore"
|
|
192
193
|
- ".rspec"
|
|
193
194
|
- ".rubocop.yml"
|
|
195
|
+
- ".rubocop_challenge.yml"
|
|
194
196
|
- ".rubocop_todo.yml"
|
|
195
197
|
- CHANGELOG.md
|
|
196
198
|
- CODE_OF_CONDUCT.md
|
|
@@ -231,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
231
233
|
- !ruby/object:Gem::Version
|
|
232
234
|
version: '0'
|
|
233
235
|
requirements: []
|
|
234
|
-
rubygems_version: 3.
|
|
236
|
+
rubygems_version: 3.3.11
|
|
235
237
|
signing_key:
|
|
236
238
|
specification_version: 4
|
|
237
239
|
summary: Create a lots of pull request like comets
|