From 7ee5437f8ab436a52d61b8cf5d10fb04500cd55e Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Fri, 27 Mar 2026 14:43:29 -0400 Subject: [PATCH] fix: ingestreferencecommand fix label generation for canons of dort content --- src/Command/IngestReferenceCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Command/IngestReferenceCommand.php b/src/Command/IngestReferenceCommand.php index f463774..483a9df 100644 --- a/src/Command/IngestReferenceCommand.php +++ b/src/Command/IngestReferenceCommand.php @@ -144,6 +144,10 @@ class IngestReferenceCommand extends Command $ref->setContent($md); $ref->setName($this->name); $ref->setType($this->type); + + if ($this->type == 'cd') { + $label = substr(basename($file), 0, -3); + } $ref->setLabel($label); $this->io->success("Ingested {$this->name} as {$this->type}:{$label}");