Skip to content

Commit

Permalink
Merge pull request #110 from devszr/main
Browse files Browse the repository at this point in the history
Fixes and adds features to Backend publishing
  • Loading branch information
waelkdouh authored Oct 19, 2022
2 parents f38ad47 + c152db6 commit 1f5e232
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tools/code/publisher/ConfigurationModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public record Backend
public string? Name { get; init; }
public string? Description { get; init; }
public string? Url { get; init; }
public string? ResourceId { get; init; }
public string? Title { get; init; }

}

public record Diagnostic
Expand Down
5 changes: 4 additions & 1 deletion tools/code/publisher/Publisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,10 @@ private async ValueTask PutBackendInformationFile(BackendInformationFile file, C
Properties = backendModel.Properties with
{
Description = configurationBackend.Description ?? backendModel.Properties.Description,
Url = configurationBackend.Url ?? backendModel.Properties.Description
Url = configurationBackend.Url ?? backendModel.Properties.Url,
ResourceId = configurationBackend.ResourceId ?? backendModel.Properties.ResourceId,
Title = configurationBackend.Title ?? backendModel.Properties.Title

}
};
}
Expand Down

0 comments on commit 1f5e232

Please sign in to comment.