We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd96bfc commit 760b519Copy full SHA for 760b519
2 files changed
workspaces/bulk-import/.changeset/dry-humans-lay.md
@@ -0,0 +1,5 @@
1
+---
2
+'@red-hat-developer-hub/backstage-plugin-bulk-import-backend': patch
3
4
+
5
+Fixes `/imports` endpoint unable to edit `catalog-info.yaml` PR
workspaces/bulk-import/plugins/bulk-import-backend/src/catalog/catalogHttpClient.ts
@@ -286,7 +286,12 @@ export class CatalogHttpClient {
286
},
287
);
288
} catch (error: any) {
289
- if (!error.message?.includes('ConflictError')) {
+ if (
290
+ !(
291
+ error.message?.includes('ConflictError') ||
292
+ error.body?.error?.name?.includes('ConflictError')
293
+ )
294
+ ) {
295
throw error;
296
}
297
// Location already exists, which is fine
0 commit comments