JuliaRegistries / RegistryCI.jl

Continuous integration (CI) tools for Julia package registries, including registry consistency testing, automatic merging (automerge) of pull requests, and automatic TagBot triggers
https://juliaregistries.github.io/RegistryCI.jl/stable
Other
31 stars 30 forks source link

thread `new_package_waiting_period` through to AutoMerge comment #552

Closed ericphanson closed 2 months ago

ericphanson commented 7 months ago

Based on #548 which should get merged first

closes https://github.com/JuliaRegistries/RegistryCI.jl/issues/413, which is a recurring source of confusion on our private registry that uses a much lower number here

ericphanson commented 7 months ago

I'm so confused about

ERROR: LoadError: LoadError: LoadError: syntax: invalid keyword argument syntax "new_package_waiting_period"
Stacktrace:
 [1] top-level scope at /home/runner/work/RegistryCI.jl/RegistryCI.jl/src/AutoMerge/pull_requests.jl:174
DilumAluthge commented 7 months ago

I'm so confused about

ERROR: LoadError: LoadError: LoadError: syntax: invalid keyword argument syntax "new_package_waiting_period"
Stacktrace:
 [1] top-level scope at /home/runner/work/RegistryCI.jl/RegistryCI.jl/src/AutoMerge/pull_requests.jl:174

Do you have something of the form f(; new_package_waiting_period)?

IIRC, that doesn't work on Julia 1.3. You'll need to do f(; new_package_waiting_period=new_package_waiting_period) instead.

GunnarFarneback commented 7 months ago

Yes, the kwarg shortcut arrived in Julia 1.5.

ericphanson commented 7 months ago

Yeah, I knew that... but still left one in. It was very confusing because the stacktrace pointed to the wrong file I think. It said

 [1] top-level scope at /home/runner/work/RegistryCI.jl/RegistryCI.jl/src/AutoMerge/pull_requests.jl:174

but that line seemed fine.