fix: undefined body (#27)

Fixing issue #26
This commit is contained in:
Middiu
2025-02-10 21:48:49 +11:00
committed by GitHub
parent 3a607d78a3
commit 0ca412d0d2

View File

@@ -27,7 +27,7 @@ async function run() {
issues.push(it.replace('#', ''));
}
});
} else if (way === 'body') {
} else if (way === 'body' && body) {
let arr = body.split('\n');
arr.forEach(it => {
if (it.startsWith('#')) {