Merge pull request #19553 from backstage/repo-tools/more-description-fixes

This commit is contained in:
Eric Peterson
2023-08-26 21:45:25 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
@@ -0,0 +1,5 @@
---
'@backstage/repo-tools': patch
---
Fixed a bug with the `generate-catalog-info` command that could cause `metadata.description` values to be overwritten by `package.json` description values only because unrelated attributes were being changed.
@@ -253,7 +253,7 @@ function createOrMergeEntity(
// Provide default name/title/description values.
name: safeEntityName,
title: packageJson.name,
...(packageJson.description
...(packageJson.description && !existingEntity.metadata?.description
? { description: packageJson.description }
: undefined),
},