fix(agentrun): accept yaml lane pipelinerun status
This commit is contained in:
@@ -352,7 +352,7 @@ export function parseStatusOptions(args: string[]): StatusOptions {
|
||||
if (arg === "--pipeline-run") {
|
||||
const value = args[index + 1];
|
||||
if (value === undefined || value.startsWith("--")) throw new Error("--pipeline-run requires a value");
|
||||
if (!isAgentRunPipelineRunName(value)) throw new Error("--pipeline-run must be an agentrun-vNN-ci-<12+ hex> PipelineRun name");
|
||||
if (!isAgentRunPipelineRunName(value)) throw new Error("--pipeline-run must be a YAML lane AgentRun PipelineRun name ending in ci-<12+ hex>");
|
||||
pipelineRun = value;
|
||||
index += 1;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user