Skip to content

Commit

Permalink
fix: create issue with labels
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Mar 2, 2024
1 parent 3c3acc3 commit 735e7be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/issues.js
Original file line number Diff line number Diff line change
@@ -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.split(',').map((i) => i.trimg())
})

return resp
Expand Down

0 comments on commit 735e7be

Please sign in to comment.