From 13eeefab0d4a250501d5f611c90850a44448d4b3 Mon Sep 17 00:00:00 2001 From: Anmol Baranwal Date: Wed, 15 Nov 2023 20:12:20 +0530 Subject: [PATCH] chore: add option for multiple labels --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1d2e6d5..ad1b734 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,7 +23,8 @@ async function HandleMultipleIssues() { core.notice("step 1."); // Retrieve custom inputs - const label = core.getInput("label") || "multiple issues"; // Set default label + // const label = core.getInput("label") || "multiple issues"; // Set default label + const label = JSON.parse(core.getInput("label")) || ["multiple issues"]; const assign = core.getInput("assign") === "true" || false; const issueNumber = core.getInput("issueNumber") === "true" || false; // converts to boolean const comment = core.getInput("comment");