Adjust for legacy issues

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-06-26 16:03:03 +01:00
parent d46a97ffa5
commit 04a3915b6c

View File

@ -6,7 +6,7 @@ async function processor(data) {
log.out('issueService.processor: Issue received', 'info');
console.log(data); // TEMPORARY MEASURE
let out = {};
out.labels = data?.labels;
out.labels = data?.labels || [];
out.title = data?.subject.replace(/<[^>]+>|[\*\$]/g, '');
out.body = data?.msg.replace(/<[^>]+>|[\*\$]/g, '');
return await sendToGitea(out);