Fix bad input name

This commit is contained in:
lowlighter
2020-11-03 18:28:59 +01:00
parent 24819054c6
commit d471638195
3 changed files with 9 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ inputs:
# Posts plugin # Posts plugin
# Display recent posts from an external source # Display recent posts from an external source
plugin_posts: plugin_posts:
description: Enable posts posts description: Enable recent posts display
default: no default: no
# Posts source # Posts source
@@ -182,6 +182,12 @@ inputs:
description: Posts source description: Posts source
default: "" default: ""
# Posts limits
# Set number of posts to display
plugin_posts_limit:
description: Posts limit
default: 4
# Isometric calendar plugin # Isometric calendar plugin
# Display an isometric view of your commits calendar, along with a few stats like current streak and average commits per day # Display an isometric view of your commits calendar, along with a few stats like current streak and average commits per day
plugin_isocalendar: plugin_isocalendar:

View File

@@ -1083,7 +1083,7 @@ var E_Users_lecoq_Documents_GitHub_gitstats_node_modules_actions_github_lib_gith
followup:{enabled:bool(core.getInput("plugin_followup"))}, 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"))}, posts:{enabled:bool(core.getInput("plugin_posts"))},
isocalendar:{enabled:bool(core.getInput("isocalendar"))}, isocalendar:{enabled:bool(core.getInput("plugin_isocalendar"))},
} }
let q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true])) 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(", ")}`) console.log(`Plugins enabled | ${Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => key).join(", ")}`)

View File

@@ -81,7 +81,7 @@
followup:{enabled:bool(core.getInput("plugin_followup"))}, 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"))}, posts:{enabled:bool(core.getInput("plugin_posts"))},
isocalendar:{enabled:bool(core.getInput("isocalendar"))}, isocalendar:{enabled:bool(core.getInput("plugin_isocalendar"))},
} }
let q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true])) 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(", ")}`) console.log(`Plugins enabled | ${Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => key).join(", ")}`)