Add plugin projects (#13)

* Add plugin projects

* Add images for readme
This commit is contained in:
Simon Lecoq
2020-12-08 19:13:36 +01:00
committed by GitHub
parent 4a312482eb
commit 1d11145c98
11 changed files with 165 additions and 24 deletions

View File

@@ -84,6 +84,7 @@
isocalendar:{enabled:bool(core.getInput("plugin_isocalendar"))},
gists:{enabled:bool(core.getInput("plugin_gists"))},
topics:{enabled:bool(core.getInput("plugin_topics"))},
projects:{enabled:bool(core.getInput("projects"))},
}
let q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true]))
console.log(`Plugins enabled | ${Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => key).join(", ")}`)
@@ -123,6 +124,12 @@
console.log(`Topics sort mode | ${q["topics.sort"]}`)
console.log(`Topics limit | ${q["topics.limit"]}`)
}
//Projects
if (plugins.projects.enabled) {
for (const option of ["limit"])
q[`projects.${option}`] = core.getInput(`plugin_projects_${option}`) || null
console.log(`Projects limit | ${q["projects.limit"]}`)
}
//Repositories to use
const repositories = Number(core.getInput("repositories")) || 100