add history card title changes

This commit is contained in:
Domai 2023-09-30 11:08:42 +02:00
parent d816974e6f
commit 3ff078e031
No known key found for this signature in database
GPG key ID: 2FBD8C921EB5B019
3 changed files with 11 additions and 0 deletions

View file

@ -100,6 +100,9 @@ async function main() {
? "horizontal"
: undefined,
hide_title: core.getBooleanInput("common_hide_title"),
title: core.getInput("history_card_title")
? core.getInput("history_card_title")
: `Last ${parseNumber(core.getInput("history_card_language_count"))} days XP history`,
hide_border: core.getBooleanInput("common_hide_border"),
theme:
core.getInput("theme") in themes

View file

@ -94,6 +94,11 @@ inputs:
type: number
default: 14
history_card_title:
description: Change the cards title
required: false
type: string
common_hide_languages:
description: "Hide specific line, eg: `scminput,Log,Plain text`"
required: false

3
dist/action.js vendored
View file

@ -145,6 +145,9 @@ function main() {
? "horizontal"
: undefined,
hide_title: core.getBooleanInput("common_hide_title"),
title: core.getInput("history_card_title")
? core.getInput("history_card_title")
: "Last ".concat((0, utils_1.parseNumber)(core.getInput("history_card_language_count")), " days XP history"),
hide_border: core.getBooleanInput("common_hide_border"),
theme: core.getInput("theme") in themes_json_1.default
? core.getInput("theme")