feat(plugins/repositories): add plugin_repositories_forks option (#1205) [skip ci]

This commit is contained in:
Simon Lecoq
2022-08-28 12:55:02 -04:00
committed by GitHub
parent 77dfb2ae7e
commit 996913ee47
5 changed files with 13 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
//Format value
(defaulted => {
//Default value
let value = q[metadata.to.query(key)] ?? q[key] ?? defaulted
let value = (meta.category !== "core" ? q[`plugin.${metadata.to.query(key)}`] : null) ?? q[metadata.to.query(key)] ?? q[key] ?? defaulted
//Apply type conversion
switch (type) {
//Booleans