Merge pull request #19553 from backstage/repo-tools/more-description-fixes
This commit is contained in:
@@ -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),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user