Version 2.3

- Display total repository disk usage instead of gists
- (classic) removed gists display
- Add new plugins "posts"
This commit is contained in:
lowlighter
2020-11-02 22:35:09 +01:00
parent 883a671e0f
commit e24d2d8482
17 changed files with 347 additions and 172 deletions

176
action/dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -79,7 +79,8 @@
selfskip:{enabled:bool(core.getInput("plugin_selfskip"))},
languages:{enabled:bool(core.getInput("plugin_languages"))},
followup:{enabled:bool(core.getInput("plugin_followup"))},
music:{enabled:bool(core.getInput("plugin_music"))}
music:{enabled:bool(core.getInput("plugin_music"))},
posts:{enabled:bool(core.getInput("plugin_posts"))},
}
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(", ")}`)
@@ -100,6 +101,13 @@
plugins.music.token = core.getInput("plugin_music_token") || ""
console.log(`Music token | ${plugins.music.token ? "provided" : "missing"}`)
}
//Posts
if (plugins.posts.enabled) {
for (const option of ["source", "limit"])
q[`posts.${option}`] = core.getInput(`plugin_posts_${option}`) || ""
console.log(`Posts provider | ${q["posts.provider"]}`)
console.log(`Posts limit | ${q["posts.limit"]}`)
}
//Repositories to use
const repositories = Number(core.getInput("repositories")) || 100