From 3ff078e0310c70c4430b795cf5308d846299ba1c Mon Sep 17 00:00:00 2001 From: Domai Date: Sat, 30 Sep 2023 11:08:42 +0200 Subject: [PATCH] add history card title changes --- action.ts | 3 +++ action.yml | 5 +++++ dist/action.js | 3 +++ 3 files changed, 11 insertions(+) diff --git a/action.ts b/action.ts index 836efde..fdff39a 100644 --- a/action.ts +++ b/action.ts @@ -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 diff --git a/action.yml b/action.yml index acfcdb4..ebac8f9 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/dist/action.js b/dist/action.js index 5fa4a1a..82e4620 100644 --- a/dist/action.js +++ b/dist/action.js @@ -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")