Adjust for legacy issues
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
d46a97ffa5
commit
04a3915b6c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user