Skip to content

Commit

Permalink
dry-run --reject-external-code
Browse files Browse the repository at this point in the history
  • Loading branch information
thepwagner committed Feb 8, 2021
1 parent cfed359 commit 03e620c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/dry-run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
write: false,
clone: false,
lockfile_only: false,
reject_external_code: false,
requirements_update_strategy: nil,
commit: nil,
updater_options: {},
Expand Down Expand Up @@ -167,6 +168,10 @@
$options[:lockfile_only] = true
end

opts.on("--reject-external-code", "Reject external code") do |_value|
$options[:reject_external_code] = true
end

opts_req_desc = "Options: auto, widen_ranges, bump_versions or "\
"bump_versions_if_necessary"
opts.on("--requirements-update-strategy STRATEGY", opts_req_desc) do |value|
Expand Down Expand Up @@ -454,7 +459,8 @@ def handle_dependabot_error(error:, dependency:)
dependency_files: $files,
repo_contents_path: $repo_contents_path,
source: source,
credentials: $options[:credentials]
credentials: $options[:credentials],
reject_external_code: $options[:reject_external_code],
)

dependencies = cached_read("dependencies") { parser.parse }
Expand Down

0 comments on commit 03e620c

Please sign in to comment.