From d75f5087fbff98d3135622245b4b4a70057af3cd Mon Sep 17 00:00:00 2001 From: Wes Todd Date: Sat, 2 Mar 2024 14:16:18 -0600 Subject: [PATCH] fix: create issue with labels --- lib/issues.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/issues.js b/lib/issues.js index 753da8a..c82b365 100644 --- a/lib/issues.js +++ b/lib/issues.js @@ -1,12 +1,13 @@ 'use strict' module.exports.create = async function (client, issue) { + console.log(`Creating issue ${issue.owner}/${issue.repo}#${issue.labels}`) const resp = await client.issues.create({ owner: issue.owner, repo: issue.repo, title: issue.title, body: issue.body, - labels: issue.meetingLabels + labels: Array.isArray(issue.labels) ? issue.labels : issue.labels.split(',').map((i) => i.trim()) }) return resp