next-issue 0.12.4 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/github.mjs +8 -1
- package/package.json +1 -1
package/dist/github.mjs
CHANGED
|
@@ -217,7 +217,14 @@ export async function failedCheckLogs(repo, branch, maxChars) {
|
|
|
217
217
|
cwd: repo.root,
|
|
218
218
|
tailChars: share,
|
|
219
219
|
});
|
|
220
|
-
|
|
220
|
+
if (logs.code === 0) {
|
|
221
|
+
parts.push(logs.stdout);
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
const reason = [`The log read failed with code ${logs.code}.`, logs.stderr.trim()]
|
|
225
|
+
.filter((line) => line !== "")
|
|
226
|
+
.join(" ");
|
|
227
|
+
parts.push([logs.stdout.trim(), reason].filter((line) => line !== "").join("\n"));
|
|
221
228
|
}
|
|
222
229
|
return parts.join("\n\n");
|
|
223
230
|
}
|