multi_repo 0.5.0 → 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/CHANGELOG.md +13 -1
- data/lib/multi_repo/helpers/pull_request_blaster_outer.rb +11 -4
- data/lib/multi_repo/service/github.rb +7 -0
- data/lib/multi_repo/version.rb +1 -1
- data/multi_repo.gemspec +1 -0
- data/renovate.json +2 -3
- data/scripts/pull_request_blaster_outer +2 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1005b52e2327efcb525b5af5351ae70667393a8660fb00526017866b3800279f
|
4
|
+
data.tar.gz: 601ffda846034e6c341c955da8d5e7c8477335a50a47702bc1d43a9334ff538e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 326bf128ad550baa31c39d25335567da18b89bffb7c677d9df087a7aaf70246d90414f2cf82bacccef7bdda4d65dcd8cae515a9bc9e4670c8b95b7b362fbf8b8
|
7
|
+
data.tar.gz: 982b95bcc4d815d95aba56b809e0f802020fee99a9ebfe501e17e0fcaad75dce5e8d0d68ad7692b2c173a2a78dad471f6c6fc277da06b02a3c8159d491949b3a
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
5
5
|
## [Unreleased]
|
6
6
|
|
7
|
+
## [0.6.0] - 2025-02-27
|
8
|
+
### Added
|
9
|
+
- [pull_request_blaster_outer] Option to force creation of the pull request without asking [[#40](https://github.com/ManageIQ/multi_repo/pull/40)]
|
10
|
+
|
11
|
+
## [0.5.1] - 2025-02-20
|
12
|
+
### Added
|
13
|
+
- Add debugging of octokit request/response if DEBUG env var set [[#38](https://github.com/ManageIQ/multi_repo/pull/38)]
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
- Pin json gem to 2.9.1 since 2.10.0+ is broken [[#41](https://github.com/ManageIQ/multi_repo/pull/41)]
|
17
|
+
|
7
18
|
## [0.5.0] - 2024-11-12
|
8
19
|
### Added
|
9
20
|
- [pull_request_labeler] Add ability to also add a comment about why the labels are changing [[#30](https://github.com/ManageIQ/multi_repo/pull/30)]
|
@@ -33,7 +44,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
33
44
|
- [show_commit_history] Prevent missing ranges from failing the entire run [[#20](https://github.com/ManageIQ/multi_repo/pull/20)]
|
34
45
|
- [pull_request_merger] Fixing issue passing kwargs on Ruby 3 [[#23](https://github.com/ManageIQ/multi_repo/pull/23)]
|
35
46
|
|
36
|
-
[Unreleased]: https://github.com/ManageIQ/more_core_extensions/compare/v0.5.
|
47
|
+
[Unreleased]: https://github.com/ManageIQ/more_core_extensions/compare/v0.5.1...HEAD
|
48
|
+
[0.5.1]: https://github.com/ManageIQ/more_core_extensions/compare/v0.5.0...v0.5.1
|
37
49
|
[0.5.0]: https://github.com/ManageIQ/more_core_extensions/compare/v0.4.0...v0.5.0
|
38
50
|
[0.4.0]: https://github.com/ManageIQ/more_core_extensions/compare/v0.3.1...v0.4.0
|
39
51
|
[0.3.1]: https://github.com/ManageIQ/more_core_extensions/compare/v0.3.0...v0.3.1
|
@@ -2,9 +2,9 @@ require 'pathname'
|
|
2
2
|
|
3
3
|
module MultiRepo::Helpers
|
4
4
|
class PullRequestBlasterOuter
|
5
|
-
attr_reader :repo, :base, :head, :script, :dry_run, :message, :title
|
5
|
+
attr_reader :repo, :base, :head, :script, :dry_run, :message, :title, :force
|
6
6
|
|
7
|
-
def initialize(repo, base:, head:, script:, dry_run:, message:, title: nil, **)
|
7
|
+
def initialize(repo, base:, head:, script:, dry_run:, message:, title: nil, force: false, **)
|
8
8
|
@repo = repo
|
9
9
|
@base = base
|
10
10
|
@head = head
|
@@ -16,6 +16,7 @@ module MultiRepo::Helpers
|
|
16
16
|
@dry_run = dry_run
|
17
17
|
@message = message
|
18
18
|
@title = (title || message)[0, 72]
|
19
|
+
@force = force
|
19
20
|
end
|
20
21
|
|
21
22
|
def blast
|
@@ -43,8 +44,14 @@ module MultiRepo::Helpers
|
|
43
44
|
puts "** dry-run: Skipping opening pull request".light_black
|
44
45
|
result = "dry run".light_black
|
45
46
|
else
|
46
|
-
|
47
|
-
|
47
|
+
answer =
|
48
|
+
if force
|
49
|
+
"Y"
|
50
|
+
else
|
51
|
+
print "Do you want to open a pull request on #{repo.name} with the above changes? (y/N): "
|
52
|
+
$stdin.gets.chomp
|
53
|
+
end
|
54
|
+
|
48
55
|
if answer.upcase.start_with?("Y")
|
49
56
|
fork_repo unless forked?
|
50
57
|
push_branch
|
data/lib/multi_repo/version.rb
CHANGED
data/multi_repo.gemspec
CHANGED
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_runtime_dependency "activesupport"
|
26
26
|
spec.add_runtime_dependency "colorize"
|
27
27
|
spec.add_runtime_dependency "config"
|
28
|
+
spec.add_runtime_dependency "json", "~> 2.9.1" # Pin json due to https://github.com/ruby/json/issues/752
|
28
29
|
spec.add_runtime_dependency "licensee"
|
29
30
|
spec.add_runtime_dependency "minigit"
|
30
31
|
spec.add_runtime_dependency "more_core_extensions"
|
data/renovate.json
CHANGED
@@ -17,6 +17,8 @@ opts = Optimist.options do
|
|
17
17
|
opt :message, "The commit message for this change.", :type => :string, :required => true
|
18
18
|
opt :title, "The PR title for this change. (default is --message)", :type => :string
|
19
19
|
|
20
|
+
opt :force, "Force creation of the pull request without asking.", :default => false
|
21
|
+
|
20
22
|
MultiRepo::CLI.common_options(self)
|
21
23
|
end
|
22
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_repo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: json
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.9.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.9.1
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: licensee
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -360,7 +374,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
360
374
|
- !ruby/object:Gem::Version
|
361
375
|
version: '0'
|
362
376
|
requirements: []
|
363
|
-
rubygems_version: 3.
|
377
|
+
rubygems_version: 3.5.22
|
364
378
|
signing_key:
|
365
379
|
specification_version: 4
|
366
380
|
summary: MultiRepo is a library for managing multiple repositiories and running scripts
|