Skip to content

Commit

Permalink
fix(plugin): owner and repo are now persisted between builds and vers…
Browse files Browse the repository at this point in the history
…ioning
  • Loading branch information
boyney123 committed Jan 24, 2025
1 parent f2eef55 commit acc235c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ export default async (config: any, options: Props) => {

if (latestServiceInCatalog) {
serviceMarkdown = latestServiceInCatalog.markdown;
owners = latestServiceInCatalog.owners || ([] as any);
repository = latestServiceInCatalog.repository || null;

// Found a service, and versions do not match, we need to version the one already there
if (latestServiceInCatalog.version !== version) {
await versionService(serviceId);
Expand All @@ -368,8 +371,6 @@ export default async (config: any, options: Props) => {
serviceSpecifications = latestServiceInCatalog.specifications ?? {};
sends = latestServiceInCatalog.sends ? [...latestServiceInCatalog.sends, ...sends] : sends;
receives = latestServiceInCatalog.receives ? [...latestServiceInCatalog.receives, ...receives] : receives;
owners = latestServiceInCatalog.owners || ([] as any);
repository = latestServiceInCatalog.repository || null;
serviceSpecificationsFiles = await getSpecificationFilesForService(serviceId, version);
}
}
Expand Down

0 comments on commit acc235c

Please sign in to comment.