@blogic-cz/agent-tools 0.5.1 → 0.5.2
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/package.json +1 -1
- package/src/gh-tool/workflow.ts +8 -0
package/package.json
CHANGED
package/src/gh-tool/workflow.ts
CHANGED
|
@@ -364,6 +364,14 @@ const fetchJobLogs = Effect.fn("workflow.fetchJobLogs")(function* (opts: {
|
|
|
364
364
|
let repoName: string;
|
|
365
365
|
if (opts.repo !== null) {
|
|
366
366
|
const parts = opts.repo.split("/");
|
|
367
|
+
if (parts.length !== 2 || !parts[0] || !parts[1]) {
|
|
368
|
+
return yield* new GitHubCommandError({
|
|
369
|
+
message: `Invalid --repo format: "${opts.repo}". Expected "owner/name" (e.g. "blogic-cz/agent-tools").`,
|
|
370
|
+
command: "workflow job-logs",
|
|
371
|
+
exitCode: 1,
|
|
372
|
+
stderr: "",
|
|
373
|
+
});
|
|
374
|
+
}
|
|
367
375
|
owner = parts[0];
|
|
368
376
|
repoName = parts[1];
|
|
369
377
|
} else {
|