Forgot one
This commit is contained in:
1 parent
4a325985aa
commit
d0ddbf6cc7
1 file changed
+8
@@ -4,6 +4,14 @@ export function buildIssueMarkdownDocument(payload) {
|
||||
lines.push(`type: ${payload.type}`);
|
||||
lines.push(`product: ${payload.product}`);
|
||||
lines.push(`version: ${payload.version}`);
|
||||
if (payload.metadata && typeof payload.metadata === 'object') {
|
||||
Object.entries(payload.metadata).forEach(([key, value]) => {
|
||||
if (value === undefined || value === null || value === '') {
|
||||
return;
|
||||
}
|
||||
lines.push(`${key}: ${String(value)}`);
|
||||
});
|
||||
}
|
||||
lines.push('---');
|
||||
lines.push('');
|
||||
|
||||
|
||||
Reference in new issue
Block a user