mergem 0.0.3 → 0.1.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/.0pdd.yml +3 -0
- data/.github/workflows/actionlint.yml +25 -0
- data/.github/workflows/copyrights.yml +19 -0
- data/.github/workflows/cron.yml +12 -5
- data/.github/workflows/markdown-lint.yml +19 -0
- data/.github/workflows/pdd.yml +11 -3
- data/.github/workflows/rake.yml +9 -4
- data/.github/workflows/reuse.yml +19 -0
- data/.github/workflows/typos.yml +19 -0
- data/.github/workflows/xcop.yml +6 -2
- data/.github/workflows/yamllint.yml +19 -0
- data/.gitignore +8 -5
- data/.rubocop.yml +12 -1
- data/.rultor.yml +6 -1
- data/Gemfile +13 -27
- data/Gemfile.lock +177 -0
- data/LICENSE.txt +1 -1
- data/LICENSES/MIT.txt +21 -0
- data/README.md +22 -20
- data/REUSE.toml +35 -0
- data/Rakefile +3 -36
- data/bin/mergem +2 -19
- data/features/cli.feature +2 -0
- data/features/gem_package.feature +2 -0
- data/features/step_definitions/steps.rb +8 -25
- data/features/support/env.rb +2 -19
- data/lib/mergem/askrultor.rb +4 -21
- data/lib/mergem/pulls.rb +3 -20
- data/lib/mergem/repos.rb +4 -21
- data/lib/mergem/version.rb +4 -21
- data/mergem.gemspec +13 -29
- data/test/test__helper.rb +23 -20
- data/test/test_askrultor.rb +5 -22
- data/test/test_pulls.rb +6 -24
- data/test/test_repos.rb +10 -28
- metadata +35 -16
- data/.simplecov +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d829f9a2246d78fe9c17359431211ad55d38e2caa99fc3f8ee86a28af27ba5e
|
4
|
+
data.tar.gz: 349951eab9badd51fee042eccc43264fd4df0eddcf2aa4609b602c80feb0c72e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0daac734fd8e885cbbeb34e35f1fa5ecd741df39a61b3daf85d4b089c3b3d7bc78345b833cc1b42ba4afd509c2d3fb435db242122ed71f78a496e33bf15892d1
|
7
|
+
data.tar.gz: 10bc0f26d2e766893eef6b37c48a621471582167fd9a671311e23b3e5e12b338498d3d4b922c3aafcada9fe49106cc2086feed774bda3bd083f88898f639843d
|
data/.0pdd.yml
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
---
|
4
|
+
# yamllint disable rule:line-length
|
5
|
+
name: actionlint
|
6
|
+
'on':
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
13
|
+
jobs:
|
14
|
+
actionlint:
|
15
|
+
timeout-minutes: 15
|
16
|
+
runs-on: ubuntu-24.04
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- name: Download actionlint
|
20
|
+
id: get_actionlint
|
21
|
+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
22
|
+
shell: bash
|
23
|
+
- name: Check workflow files
|
24
|
+
run: ${{ steps.get_actionlint.outputs.executable }} -color
|
25
|
+
shell: bash
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
---
|
4
|
+
# yamllint disable rule:line-length
|
5
|
+
name: copyrights
|
6
|
+
'on':
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
13
|
+
jobs:
|
14
|
+
copyrights:
|
15
|
+
timeout-minutes: 15
|
16
|
+
runs-on: ubuntu-24.04
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- uses: yegor256/copyrights-action@0.0.12
|
data/.github/workflows/cron.yml
CHANGED
@@ -1,24 +1,31 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
1
3
|
---
|
4
|
+
# yamllint disable rule:line-length
|
2
5
|
name: cron
|
3
|
-
on:
|
6
|
+
'on':
|
4
7
|
schedule:
|
5
8
|
- cron: '17 * * * *'
|
6
9
|
jobs:
|
7
10
|
cron:
|
8
|
-
|
11
|
+
timeout-minutes: 45
|
12
|
+
runs-on: ubuntu-24.04
|
9
13
|
steps:
|
10
14
|
- uses: actions/checkout@v4
|
11
15
|
- uses: ruby/setup-ruby@v1
|
12
16
|
with:
|
13
|
-
ruby-version: 3.
|
14
|
-
|
17
|
+
ruby-version: 3.3
|
18
|
+
bundler-cache: true
|
19
|
+
- run: bundle config set --global path "$(pwd)/vendor/bundle"
|
20
|
+
- run: bundle install --no-color
|
15
21
|
- run: bundle exec rake rubocop
|
16
22
|
- run: |
|
17
23
|
# --github-cache=yegor256/mergem/cache/latest.txt \
|
18
|
-
bin/mergem --verbose \
|
24
|
+
bundle exec ruby bin/mergem --verbose \
|
19
25
|
--token=${{ secrets.TOKEN }} \
|
20
26
|
--repo=yegor256/* \
|
21
27
|
--repo=objectionary/* \
|
28
|
+
--repo=zerocracy/* \
|
22
29
|
--repo=polystat/* \
|
23
30
|
--repo=sttc/* \
|
24
31
|
--repo=zold-io/* \
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
---
|
4
|
+
# yamllint disable rule:line-length
|
5
|
+
name: markdown-lint
|
6
|
+
'on':
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
13
|
+
jobs:
|
14
|
+
markdown-lint:
|
15
|
+
timeout-minutes: 15
|
16
|
+
runs-on: ubuntu-24.04
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
data/.github/workflows/pdd.yml
CHANGED
@@ -1,11 +1,19 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
1
3
|
---
|
4
|
+
# yamllint disable rule:line-length
|
2
5
|
name: pdd
|
3
|
-
on:
|
6
|
+
'on':
|
4
7
|
push:
|
8
|
+
branches:
|
9
|
+
- master
|
5
10
|
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
6
13
|
jobs:
|
7
14
|
pdd:
|
8
|
-
|
15
|
+
timeout-minutes: 15
|
16
|
+
runs-on: ubuntu-24.04
|
9
17
|
steps:
|
10
18
|
- uses: actions/checkout@v4
|
11
|
-
- uses:
|
19
|
+
- uses: volodya-lombrozo/pdd-action@master
|
data/.github/workflows/rake.yml
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
1
3
|
---
|
4
|
+
# yamllint disable rule:line-length
|
2
5
|
name: rake
|
3
|
-
on:
|
6
|
+
'on':
|
4
7
|
push:
|
5
8
|
branches:
|
6
9
|
- master
|
@@ -11,13 +14,15 @@ jobs:
|
|
11
14
|
test:
|
12
15
|
strategy:
|
13
16
|
matrix:
|
14
|
-
os: [ubuntu-
|
15
|
-
ruby: [
|
17
|
+
os: [ubuntu-24.04, macos-15]
|
18
|
+
ruby: [3.3]
|
16
19
|
runs-on: ${{ matrix.os }}
|
17
20
|
steps:
|
18
21
|
- uses: actions/checkout@v4
|
19
22
|
- uses: ruby/setup-ruby@v1
|
20
23
|
with:
|
21
24
|
ruby-version: ${{ matrix.ruby }}
|
22
|
-
|
25
|
+
bundler-cache: true
|
26
|
+
- run: bundle config set --global path "$(pwd)/vendor/bundle"
|
27
|
+
- run: bundle install --no-color
|
23
28
|
- run: bundle exec rake
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
---
|
4
|
+
# yamllint disable rule:line-length
|
5
|
+
name: reuse
|
6
|
+
'on':
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
13
|
+
jobs:
|
14
|
+
reuse:
|
15
|
+
timeout-minutes: 15
|
16
|
+
runs-on: ubuntu-24.04
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- uses: fsfe/reuse-action@v5
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
---
|
4
|
+
# yamllint disable rule:line-length
|
5
|
+
name: typos
|
6
|
+
'on':
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
13
|
+
jobs:
|
14
|
+
typos:
|
15
|
+
timeout-minutes: 15
|
16
|
+
runs-on: ubuntu-24.04
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- uses: crate-ci/typos@v1.34.0
|
data/.github/workflows/xcop.yml
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
1
3
|
---
|
4
|
+
# yamllint disable rule:line-length
|
2
5
|
name: xcop
|
3
|
-
on:
|
6
|
+
'on':
|
4
7
|
push:
|
5
8
|
pull_request:
|
6
9
|
jobs:
|
7
10
|
xcop:
|
8
|
-
|
11
|
+
timeout-minutes: 15
|
12
|
+
runs-on: ubuntu-24.04
|
9
13
|
steps:
|
10
14
|
- uses: actions/checkout@v4
|
11
15
|
- uses: g4s8/xcop-action@master
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
---
|
4
|
+
# yamllint disable rule:line-length
|
5
|
+
name: yamllint
|
6
|
+
'on':
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
13
|
+
jobs:
|
14
|
+
yamllint:
|
15
|
+
timeout-minutes: 15
|
16
|
+
runs-on: ubuntu-24.04
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v4
|
19
|
+
- uses: ibiqlik/action-yamllint@v3
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,14 +1,25 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
---
|
1
4
|
AllCops:
|
2
5
|
Exclude:
|
3
6
|
- 'bin/**/*'
|
4
7
|
- 'assets/**/*'
|
8
|
+
- 'vendor/**/*'
|
5
9
|
DisplayCopNames: true
|
6
10
|
TargetRubyVersion: 2.2
|
7
11
|
NewCops: enable
|
8
12
|
SuggestExtensions: false
|
9
|
-
|
13
|
+
plugins:
|
14
|
+
- rubocop-rake
|
15
|
+
- rubocop-minitest
|
16
|
+
- rubocop-performance
|
17
|
+
Minitest/EmptyLineBeforeAssertionMethods:
|
18
|
+
Enabled: false
|
10
19
|
Metrics/CyclomaticComplexity:
|
11
20
|
Max: 10
|
21
|
+
Naming/PredicateMethod:
|
22
|
+
Enabled: false
|
12
23
|
Metrics/MethodLength:
|
13
24
|
Enabled: false
|
14
25
|
Layout/MultilineMethodCallIndentation:
|
data/.rultor.yml
CHANGED
@@ -1,11 +1,16 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
---
|
4
|
+
# yamllint disable rule:line-length
|
1
5
|
docker:
|
2
|
-
image: yegor256/
|
6
|
+
image: yegor256/ruby
|
3
7
|
assets:
|
4
8
|
rubygems.yml: yegor256/home#assets/rubygems.yml
|
5
9
|
install: |
|
6
10
|
pdd -f /dev/null
|
7
11
|
sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
|
8
12
|
release:
|
13
|
+
pre: false
|
9
14
|
script: |-
|
10
15
|
bundle exec rake
|
11
16
|
rm -rf *.gem
|
data/Gemfile
CHANGED
@@ -1,31 +1,17 @@
|
|
1
|
-
# Copyright (c) 2022-
|
2
|
-
#
|
3
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
-
# of this software and associated documentation files (the 'Software'), to deal
|
5
|
-
# in the Software without restriction, including without limitation the rights
|
6
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
-
# copies of the Software, and to permit persons to whom the Software is
|
8
|
-
# furnished to do so, subject to the following conditions:
|
9
|
-
#
|
10
|
-
# The above copyright notice and this permission notice shall be included in all
|
11
|
-
# copies or substantial portions of the Software.
|
12
|
-
#
|
13
|
-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
-
# SOFTWARE.
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
20
3
|
|
21
4
|
source 'https://rubygems.org'
|
22
5
|
gemspec
|
23
6
|
|
24
|
-
gem 'cucumber', '9.
|
25
|
-
gem 'minitest', '5.20
|
26
|
-
gem '
|
27
|
-
gem '
|
28
|
-
gem '
|
29
|
-
gem 'rubocop
|
30
|
-
gem '
|
31
|
-
gem '
|
7
|
+
gem 'cucumber', '~>9.1', require: false
|
8
|
+
gem 'minitest', '~>5.20', require: false
|
9
|
+
gem 'minitest-reporters', '~>1.7', require: false
|
10
|
+
gem 'rake', '~>13.1', require: false
|
11
|
+
gem 'rdoc', '~>6.6', require: false
|
12
|
+
gem 'rubocop', '~>1.64', require: false
|
13
|
+
gem 'rubocop-minitest', '~>0.38', require: false
|
14
|
+
gem 'rubocop-performance', '~>1.25', require: false
|
15
|
+
gem 'rubocop-rake', '~>0.7', require: false
|
16
|
+
gem 'simplecov', '~>0.22', require: false
|
17
|
+
gem 'simplecov-cobertura', '~>2.1', require: false
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mergem (0.0.0)
|
5
|
+
backtrace (~> 0.3)
|
6
|
+
iri (~> 0.5)
|
7
|
+
loog (~> 0.2)
|
8
|
+
nokogiri (~> 1.18)
|
9
|
+
obk (~> 0.3)
|
10
|
+
octokit (~> 10.0)
|
11
|
+
rainbow (~> 3.0)
|
12
|
+
slop (~> 4.4)
|
13
|
+
tacky (~> 0.3)
|
14
|
+
|
15
|
+
GEM
|
16
|
+
remote: https://rubygems.org/
|
17
|
+
specs:
|
18
|
+
addressable (2.8.7)
|
19
|
+
public_suffix (>= 2.0.2, < 7.0)
|
20
|
+
ansi (1.5.0)
|
21
|
+
ast (2.4.3)
|
22
|
+
backtrace (0.4.1)
|
23
|
+
bigdecimal (3.2.2)
|
24
|
+
builder (3.3.0)
|
25
|
+
cucumber (9.2.1)
|
26
|
+
builder (~> 3.2)
|
27
|
+
cucumber-ci-environment (> 9, < 11)
|
28
|
+
cucumber-core (> 13, < 14)
|
29
|
+
cucumber-cucumber-expressions (~> 17.0)
|
30
|
+
cucumber-gherkin (> 24, < 28)
|
31
|
+
cucumber-html-formatter (> 20.3, < 22)
|
32
|
+
cucumber-messages (> 19, < 25)
|
33
|
+
diff-lcs (~> 1.5)
|
34
|
+
mini_mime (~> 1.1)
|
35
|
+
multi_test (~> 1.1)
|
36
|
+
sys-uname (~> 1.2)
|
37
|
+
cucumber-ci-environment (10.0.1)
|
38
|
+
cucumber-core (13.0.3)
|
39
|
+
cucumber-gherkin (>= 27, < 28)
|
40
|
+
cucumber-messages (>= 20, < 23)
|
41
|
+
cucumber-tag-expressions (> 5, < 7)
|
42
|
+
cucumber-cucumber-expressions (17.1.0)
|
43
|
+
bigdecimal
|
44
|
+
cucumber-gherkin (27.0.0)
|
45
|
+
cucumber-messages (>= 19.1.4, < 23)
|
46
|
+
cucumber-html-formatter (21.13.0)
|
47
|
+
cucumber-messages (> 19, < 28)
|
48
|
+
cucumber-messages (22.0.0)
|
49
|
+
cucumber-tag-expressions (6.1.2)
|
50
|
+
date (3.4.1)
|
51
|
+
diff-lcs (1.6.2)
|
52
|
+
docile (1.4.1)
|
53
|
+
erb (5.0.1)
|
54
|
+
faraday (2.13.2)
|
55
|
+
faraday-net_http (>= 2.0, < 3.5)
|
56
|
+
json
|
57
|
+
logger
|
58
|
+
faraday-net_http (3.4.1)
|
59
|
+
net-http (>= 0.5.0)
|
60
|
+
ffi (1.17.2-arm64-darwin)
|
61
|
+
ffi (1.17.2-x64-mingw-ucrt)
|
62
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
63
|
+
iri (0.11.2)
|
64
|
+
json (2.12.2)
|
65
|
+
language_server-protocol (3.17.0.5)
|
66
|
+
lint_roller (1.1.0)
|
67
|
+
logger (1.7.0)
|
68
|
+
loog (0.6.1)
|
69
|
+
logger (~> 1.0)
|
70
|
+
mini_mime (1.1.5)
|
71
|
+
minitest (5.25.5)
|
72
|
+
minitest-reporters (1.7.1)
|
73
|
+
ansi
|
74
|
+
builder
|
75
|
+
minitest (>= 5.0)
|
76
|
+
ruby-progressbar
|
77
|
+
multi_test (1.1.0)
|
78
|
+
net-http (0.6.0)
|
79
|
+
uri
|
80
|
+
nokogiri (1.18.8-arm64-darwin)
|
81
|
+
racc (~> 1.4)
|
82
|
+
nokogiri (1.18.8-x64-mingw-ucrt)
|
83
|
+
racc (~> 1.4)
|
84
|
+
nokogiri (1.18.8-x86_64-linux-gnu)
|
85
|
+
racc (~> 1.4)
|
86
|
+
obk (0.3.2)
|
87
|
+
octokit (10.0.0)
|
88
|
+
faraday (>= 1, < 3)
|
89
|
+
sawyer (~> 0.9)
|
90
|
+
parallel (1.27.0)
|
91
|
+
parser (3.3.8.0)
|
92
|
+
ast (~> 2.4.1)
|
93
|
+
racc
|
94
|
+
prism (1.4.0)
|
95
|
+
psych (5.2.6)
|
96
|
+
date
|
97
|
+
stringio
|
98
|
+
public_suffix (6.0.2)
|
99
|
+
racc (1.8.1)
|
100
|
+
rainbow (3.1.1)
|
101
|
+
rake (13.3.0)
|
102
|
+
rdoc (6.14.2)
|
103
|
+
erb
|
104
|
+
psych (>= 4.0.0)
|
105
|
+
regexp_parser (2.10.0)
|
106
|
+
rexml (3.4.1)
|
107
|
+
rubocop (1.78.0)
|
108
|
+
json (~> 2.3)
|
109
|
+
language_server-protocol (~> 3.17.0.2)
|
110
|
+
lint_roller (~> 1.1.0)
|
111
|
+
parallel (~> 1.10)
|
112
|
+
parser (>= 3.3.0.2)
|
113
|
+
rainbow (>= 2.2.2, < 4.0)
|
114
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
115
|
+
rubocop-ast (>= 1.45.1, < 2.0)
|
116
|
+
ruby-progressbar (~> 1.7)
|
117
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
118
|
+
rubocop-ast (1.45.1)
|
119
|
+
parser (>= 3.3.7.2)
|
120
|
+
prism (~> 1.4)
|
121
|
+
rubocop-minitest (0.38.1)
|
122
|
+
lint_roller (~> 1.1)
|
123
|
+
rubocop (>= 1.75.0, < 2.0)
|
124
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
125
|
+
rubocop-performance (1.25.0)
|
126
|
+
lint_roller (~> 1.1)
|
127
|
+
rubocop (>= 1.75.0, < 2.0)
|
128
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
129
|
+
rubocop-rake (0.7.1)
|
130
|
+
lint_roller (~> 1.1)
|
131
|
+
rubocop (>= 1.72.1)
|
132
|
+
ruby-progressbar (1.13.0)
|
133
|
+
sawyer (0.9.2)
|
134
|
+
addressable (>= 2.3.5)
|
135
|
+
faraday (>= 0.17.3, < 3)
|
136
|
+
simplecov (0.22.0)
|
137
|
+
docile (~> 1.1)
|
138
|
+
simplecov-html (~> 0.11)
|
139
|
+
simplecov_json_formatter (~> 0.1)
|
140
|
+
simplecov-cobertura (2.1.0)
|
141
|
+
rexml
|
142
|
+
simplecov (~> 0.19)
|
143
|
+
simplecov-html (0.13.1)
|
144
|
+
simplecov_json_formatter (0.1.4)
|
145
|
+
slop (4.10.1)
|
146
|
+
stringio (3.1.7)
|
147
|
+
sys-uname (1.3.1)
|
148
|
+
ffi (~> 1.1)
|
149
|
+
tacky (0.5.2)
|
150
|
+
unicode-display_width (3.1.4)
|
151
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
152
|
+
unicode-emoji (4.0.4)
|
153
|
+
uri (1.0.3)
|
154
|
+
|
155
|
+
PLATFORMS
|
156
|
+
arm64-darwin-22
|
157
|
+
arm64-darwin-23
|
158
|
+
arm64-darwin-24
|
159
|
+
x64-mingw-ucrt
|
160
|
+
x86_64-linux
|
161
|
+
|
162
|
+
DEPENDENCIES
|
163
|
+
cucumber (~> 9.1)
|
164
|
+
mergem!
|
165
|
+
minitest (~> 5.20)
|
166
|
+
minitest-reporters (~> 1.7)
|
167
|
+
rake (~> 13.1)
|
168
|
+
rdoc (~> 6.6)
|
169
|
+
rubocop (~> 1.64)
|
170
|
+
rubocop-minitest (~> 0.38)
|
171
|
+
rubocop-performance (~> 1.25)
|
172
|
+
rubocop-rake (~> 0.7)
|
173
|
+
simplecov (~> 0.22)
|
174
|
+
simplecov-cobertura (~> 2.1)
|
175
|
+
|
176
|
+
BUNDLED WITH
|
177
|
+
2.5.16
|
data/LICENSE.txt
CHANGED
data/LICENSES/MIT.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2022-2025 Yegor Bugayenko
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the 'Software'), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,25 +1,26 @@
|
|
1
|
+
# Auto-Ask Rultor to Merge Pull Requests from Robots
|
2
|
+
|
1
3
|
[](https://www.elegantobjects.org)
|
2
|
-
[](https://www.rultor.com/p/yegor256/mergem)
|
3
5
|
[](https://www.jetbrains.com/ruby/)
|
4
6
|
|
5
7
|
[](https://github.com/yegor256/mergem/actions/workflows/rake.yml)
|
6
|
-
[](
|
8
|
+
[](https://badge.fury.io/rb/mergem)
|
7
9
|
[](https://github.com/yegor256/mergem/blob/master/LICENSE.txt)
|
8
10
|
[](https://codecov.io/github/yegor256/mergem?branch=master)
|
9
|
-

|
10
11
|
[](https://hitsofcode.com/view/github/yegor256/mergem)
|
11
12
|
|
12
13
|
This simple script may help you deal with pull requests
|
13
14
|
coming to your GitHub repositories from robots:
|
14
15
|
|
15
16
|
```bash
|
16
|
-
|
17
|
+
gem install mergem
|
17
18
|
```
|
18
19
|
|
19
20
|
Then, run it locally and read its output:
|
20
21
|
|
21
22
|
```bash
|
22
|
-
|
23
|
+
mergem --repo yegor256/mergem --verbose --token <YOUR_GITHUB_TOKEN>
|
23
24
|
```
|
24
25
|
|
25
26
|
First, it will find all pull requests in `yegor256/mergem` GitHub repository,
|
@@ -27,14 +28,14 @@ which were not yet discussed by the owner of the token. Then, it will ignore
|
|
27
28
|
those pull requests that are coming not
|
28
29
|
from [Renovate](https://github.com/apps/renovate)
|
29
30
|
or [Dependabot](https://github.com/dependabot). Then, it will
|
30
|
-
post `@rultor merge` text message to each pull
|
31
|
+
post `@rultor please, try to merge` text message to each pull
|
32
|
+
request left in the list.
|
31
33
|
|
32
34
|
## Token
|
33
35
|
|
34
|
-
`mergem` requires a GitHub token to be passed via the `--token` option.
|
35
|
-
obtain one, go to your GitHub account, then navigate to "Settings," and then
|
36
|
-
to "Developer Settings"
|
37
|
-
the [link](https://github.com/settings/tokens).)
|
36
|
+
`mergem` requires a GitHub token to be passed via the `--token` option.
|
37
|
+
To obtain one, go to your GitHub account, then navigate to "Settings," and then
|
38
|
+
to ["Developer Settings"](https://github.com/settings/tokens).
|
38
39
|
|
39
40
|
### Classic Token
|
40
41
|
|
@@ -60,26 +61,27 @@ obtain additional approval from the organization.
|
|
60
61
|
> prompted
|
61
62
|
> to opt-in and set policies when you follow the steps below.
|
62
63
|
|
63
|
-
|
64
|
-
organization
|
65
|
-
right [here](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization).
|
64
|
+
Read about [setting a personal access][PAT] token policy for your organization.
|
66
65
|
|
67
66
|
## How to contribute
|
68
67
|
|
69
|
-
Read
|
70
|
-
Make sure
|
68
|
+
Read these [guidelines].
|
69
|
+
Make sure your build is green before you contribute your pull request. You will
|
71
70
|
need to have [Ruby](https://www.ruby-lang.org/en/) 2.3+
|
72
71
|
and [Bundler](https://bundler.io/) installed. Then:
|
73
72
|
|
74
|
-
```
|
75
|
-
|
76
|
-
|
73
|
+
```bash
|
74
|
+
bundle update
|
75
|
+
bundle exec rake
|
77
76
|
```
|
78
77
|
|
79
78
|
If it's clean and you don't see any error messages, submit your pull request.
|
80
79
|
|
81
80
|
In order to run a single test:
|
82
81
|
|
82
|
+
```bash
|
83
|
+
bundle exec ruby test/test_askrultor.rb
|
83
84
|
```
|
84
|
-
|
85
|
-
|
85
|
+
|
86
|
+
[PAT]: https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization
|
87
|
+
[guidelines]: https://www.yegor256.com/2014/04/15/github-guidelines.html
|