@milabench/bujang 0.1.24 → 0.1.25
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/views/PipelineEditor.tsx +1 -1
package/package.json
CHANGED
|
@@ -130,7 +130,7 @@ const exportedConstants = (script: string): Record<string, string> => {
|
|
|
130
130
|
/** The label a job will get (resolve_label of the server): its own, its nearest group's or its script's, `{NAME}` filled */
|
|
131
131
|
const resolvedLabel = (job: Extract<PipelineNode, { type: 'job' }>, inherited: string | undefined, script: string | undefined): string => {
|
|
132
132
|
const values: Record<string, string> = { ...exportedConstants(script ?? ''), ...(job.env ?? {}) };
|
|
133
|
-
const template = job.label || inherited || values.BUJANG_JOB_LABEL ||
|
|
133
|
+
const template = job.label || inherited || values.BUJANG_JOB_LABEL || '';
|
|
134
134
|
return template.replace(/\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (all, name: string) => String(values[name] ?? all)).split(/\s+/).filter(Boolean).join(' ').slice(0, 200);
|
|
135
135
|
};
|
|
136
136
|
|