neetob 0.4.2 → 0.4.3
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 +7 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -0
- data/lib/neetob/cli/base.rb +5 -0
- data/lib/neetob/cli/github/make_pr/base.rb +8 -0
- data/lib/neetob/cli/github/make_pr/commands.rb +2 -1
- data/lib/neetob/cli/github/make_pr/compliance_fix.rb +1 -3
- data/lib/neetob/cli/github/make_pr/script.rb +5 -5
- data/lib/neetob/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fd60283a5ac6d285fe20a16357e39d0c72d9c48964d44016915eda55cd41a41
|
4
|
+
data.tar.gz: dc89a8882804bd9d774c6ae8e7f91760fb15ad000a7d0eb6ec89d7bb447c717d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a373c5ca6a6e9a77071e5714d7b08c9ebdd03e2c0567ac1b7280233d28659c7491255ede9d20a185bdb5764b7d6b6746ce31a0ab43333a02f4f16fce77edf55
|
7
|
+
data.tar.gz: 1208e7c0d1dc21e242bbcaa68b58e07f4e4d544f39e63582599b85597c0340effa7fb8ff10a78fce4f0456b20569eba442d85a2f077772b57a437b9b7d1db01b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
### [0.4.3](https://www.github.com/bigbinary/neetob/compare/v0.4.2...v0.4.3) (2023-04-25)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* Added frontend packages option for make-pr command ([#255](https://www.github.com/bigbinary/neetob/issues/255)) ([a884e24](https://www.github.com/bigbinary/neetob/commit/a884e24a5160ba28cae90ba73e9a4853587be4e6))
|
9
|
+
|
3
10
|
### [0.4.2](https://www.github.com/bigbinary/neetob/compare/v0.4.1...v0.4.2) (2023-04-14)
|
4
11
|
|
5
12
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -228,6 +228,10 @@ neetob github make-pr compliance-fix --nanos
|
|
228
228
|
# The `script` command runs the given script for each product and create a PR
|
229
229
|
neetob github make-pr script --path ~/Desktop/fix-folders.sh --branch "neetob-test" \
|
230
230
|
--title "PR title" --description "PR description"
|
231
|
+
|
232
|
+
# Create PRs using script in neeto frontend packages
|
233
|
+
neetob github make-pr script --path ~/Desktop/fix-folders.sh --branch "neetob-test" \
|
234
|
+
--title "PR title" --description "PR description" --frontend-packages
|
231
235
|
```
|
232
236
|
|
233
237
|
### Gems
|
data/lib/neetob/cli/base.rb
CHANGED
@@ -100,5 +100,10 @@ module Neetob
|
|
100
100
|
all_available_gems = NeetoCompliance::NeetoRepos.nanos_backend
|
101
101
|
match_apps(gems || ["*"], all_available_gems)
|
102
102
|
end
|
103
|
+
|
104
|
+
def find_all_matching_frontend_packages(packages = ["*"])
|
105
|
+
all_available_packages = NeetoCompliance::NeetoRepos.nanos_frontend
|
106
|
+
match_apps(packages || ["*"], all_available_packages)
|
107
|
+
end
|
103
108
|
end
|
104
109
|
end
|
@@ -78,6 +78,14 @@ module Neetob
|
|
78
78
|
def add_org_suffix(repos)
|
79
79
|
repos.map { |repo| "bigbinary/#{repo}" }
|
80
80
|
end
|
81
|
+
|
82
|
+
def build_matching_repos_list(should_fix_nanos, should_fix_frontend_packages = false)
|
83
|
+
return add_org_suffix(find_all_matching_gems) if should_fix_nanos
|
84
|
+
|
85
|
+
return add_org_suffix(find_all_matching_frontend_packages) if should_fix_frontend_packages
|
86
|
+
|
87
|
+
find_all_matching_apps_or_repos(repos, :github, sandbox)
|
88
|
+
end
|
81
89
|
end
|
82
90
|
end
|
83
91
|
end
|
@@ -27,10 +27,11 @@ module Neetob
|
|
27
27
|
option :title, type: :string, aliases: "-t", desc: "Title for the PR"
|
28
28
|
option :branch, type: :string, aliases: "-b", desc: "Feature branch name for the PR"
|
29
29
|
option :description, type: :string, aliases: "-d", desc: "Description of the PR"
|
30
|
+
option :frontend_packages, type: :boolean, aliases: "-f", default: false, desc: "Use this flag to make PRs for the neeto frontend packages"
|
30
31
|
def script
|
31
32
|
Script.new(
|
32
33
|
options[:repos], options[:path], options[:title], options[:branch], options[:description],
|
33
|
-
options[:nanos], options[:sandbox]).run
|
34
|
+
options[:nanos], options[:frontend_packages], options[:sandbox]).run
|
34
35
|
end
|
35
36
|
end
|
36
37
|
end
|
@@ -20,9 +20,7 @@ module Neetob
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def run
|
23
|
-
matching_repos = should_fix_nanos
|
24
|
-
add_org_suffix(find_all_matching_gems) :
|
25
|
-
find_all_matching_apps_or_repos(repos, :github, sandbox)
|
23
|
+
matching_repos = build_matching_repos_list(should_fix_nanos)
|
26
24
|
@failed_repos = matching_repos.clone
|
27
25
|
delete_and_create_temp_neetob_dir
|
28
26
|
matching_repos.each do |repo|
|
@@ -9,22 +9,22 @@ module Neetob
|
|
9
9
|
module Github
|
10
10
|
module MakePr
|
11
11
|
class Script < Base
|
12
|
-
attr_accessor :repos, :sandbox, :path_to_the_script_file, :pr_description, :should_fix_nanos
|
12
|
+
attr_accessor :repos, :sandbox, :path_to_the_script_file, :pr_description, :should_fix_nanos,
|
13
|
+
:should_fix_frontend_packages
|
13
14
|
|
14
15
|
def initialize(repos, path_to_the_script_file, pr_title,
|
15
|
-
branch_name, pr_description, should_fix_nanos, sandbox = false)
|
16
|
+
branch_name, pr_description, should_fix_nanos, should_fix_frontend_packages = false, sandbox = false)
|
16
17
|
super(pr_title, branch_name)
|
17
18
|
@repos = repos
|
18
19
|
@sandbox = sandbox
|
19
20
|
@path_to_the_script_file = path_to_the_script_file
|
20
21
|
@pr_description = pr_description
|
21
22
|
@should_fix_nanos = should_fix_nanos
|
23
|
+
@should_fix_frontend_packages = should_fix_frontend_packages
|
22
24
|
end
|
23
25
|
|
24
26
|
def run
|
25
|
-
matching_repos = should_fix_nanos
|
26
|
-
add_org_suffix(find_all_matching_gems) :
|
27
|
-
find_all_matching_apps_or_repos(repos, :github, sandbox)
|
27
|
+
matching_repos = build_matching_repos_list(should_fix_nanos, should_fix_frontend_packages)
|
28
28
|
delete_and_create_temp_neetob_dir
|
29
29
|
matching_repos.each do |repo|
|
30
30
|
ui.info("\n Working on #{repo} \n")
|
data/lib/neetob/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neetob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Udai Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|