multi_repo 0.5.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/CHANGELOG.md +4 -0
 - data/lib/multi_repo/helpers/pull_request_blaster_outer.rb +11 -4
 - data/lib/multi_repo/version.rb +1 -1
 - data/scripts/pull_request_blaster_outer +2 -0
 - metadata +6 -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,10 @@ 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 
     | 
    
         
            +
             
     | 
| 
       7 
11 
     | 
    
         
             
            ## [0.5.1] - 2025-02-20
         
     | 
| 
       8 
12 
     | 
    
         
             
            ### Added
         
     | 
| 
       9 
13 
     | 
    
         
             
            - Add debugging of octokit request/response if DEBUG env var set [[#38](https://github.com/ManageIQ/multi_repo/pull/38)]
         
     | 
| 
         @@ -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
    
    
| 
         @@ -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,13 +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 
     | 
    
         
            +
            autorequire:
         
     | 
| 
       8 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       9 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       10 
     | 
    
         
            -
            date: 2025-02- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-02-27 00:00:00.000000000 Z
         
     | 
| 
       11 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       12 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       13 
14 
     | 
    
         
             
              name: activesupport
         
     | 
| 
         @@ -358,6 +359,7 @@ homepage: http://github.com/ManageIQ/multi_repo 
     | 
|
| 
       358 
359 
     | 
    
         
             
            licenses:
         
     | 
| 
       359 
360 
     | 
    
         
             
            - MIT
         
     | 
| 
       360 
361 
     | 
    
         
             
            metadata: {}
         
     | 
| 
      
 362 
     | 
    
         
            +
            post_install_message:
         
     | 
| 
       361 
363 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       362 
364 
     | 
    
         
             
            require_paths:
         
     | 
| 
       363 
365 
     | 
    
         
             
            - lib
         
     | 
| 
         @@ -372,7 +374,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       372 
374 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       373 
375 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       374 
376 
     | 
    
         
             
            requirements: []
         
     | 
| 
       375 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 377 
     | 
    
         
            +
            rubygems_version: 3.5.22
         
     | 
| 
      
 378 
     | 
    
         
            +
            signing_key:
         
     | 
| 
       376 
379 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       377 
380 
     | 
    
         
             
            summary: MultiRepo is a library for managing multiple repositiories and running scripts
         
     | 
| 
       378 
381 
     | 
    
         
             
              against them.
         
     |