You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Skyline.DataMiner.CICD.Tools.GitHubToCatalogYaml/CatalogManager.cs
+39-39
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ public CatalogManager(IFileSystem fs, ILogger logger, IGitHubService service, st
34
34
this.service=service;
35
35
this.workspace=workspace;
36
36
}
37
+
37
38
/// <summary>
38
39
/// Processes the catalog YAML file for the specified GitHub repository. It checks and updates various fields such as ID, description, tags, title, and type.
39
40
/// If no catalog file is found, it attempts to create one from the manifest file.
/// Checks and sets the ID field in the provided catalog YAML.
88
+
/// Infers the artifact content type based on the provided keyword. It checks if the keyword is in the artifact type map and returns the corresponding content type.
89
+
/// </summary>
90
+
/// <param name="keyword">The keyword to infer the artifact content type from.</param>
91
+
/// <returns>The inferred content type, or an empty string if the keyword is not recognized.</returns>
/// Checks and sets the ID field in the provided catalog YAML.
88
106
/// If the ID is not present or is empty, it attempts to retrieve or create a new ID using the provided catalog identifier, or the ID from the auto-generated catalog YAML.
89
107
/// </summary>
90
108
/// <param name="catalogYaml">The catalog YAML object to check and update.</param>
/// Infers the artifact content type based on the provided keyword. It checks if the keyword is in the artifact type map and returns the corresponding content type.
316
-
/// </summary>
317
-
/// <param name="keyword">The keyword to infer the artifact content type from.</param>
318
-
/// <returns>The inferred content type, or an empty string if the keyword is not recognized.</returns>
0 commit comments