Skip to content
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Sascha Mann <[email protected]>
  • Loading branch information
DilumAluthge and SaschaMann authored Mar 30, 2021
commit d928f49db56ed18f151faaf81c153896fc6f0835
8 changes: 2 additions & 6 deletions kwargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ function kwargs(; coverage::Bool,
if force_latest_compatible_version isa Bool
kwargs_dict[:force_latest_compatible_version] = force_latest_compatible_version
elseif force_latest_compatible_version == :auto
if is_dependabot_job
@info("This is a Dependabot/CompatHelper job, so `force_latest_compatible_version` has been set to `true`")
kwargs_dict[:force_latest_compatible_version] = true
else
kwargs_dict[:force_latest_compatible_version] = false
end
is_dependabot_job && @info("This is a Dependabot/CompatHelper job, so `force_latest_compatible_version` has been set to `true`")
kwargs_dict[:force_latest_compatible_version] = is_dependabot_job
else
throw(ArgumentError("Invalid value for force_latest_compatible_version: $(force_latest_compatible_version)"))
end
Expand Down