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