We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e9de4ae + e0dfebc commit 184381eCopy full SHA for 184381e
OpenContent/Components/Github/GithubTemplateUtils.cs
@@ -60,8 +60,14 @@ public static List<Contents> GetTemplateList(int portalId)
60
var response = client.GetStringAsync(new Uri(url)).Result;
61
if (response != null)
62
{
63
+ // Parse the response and add the contents
64
+ var allContents = Contents.FromJson(response);
65
+
66
+ // Filter the .github folder
67
+ var filteredContents = allContents.Where(content => !content.Name.Equals(".github", StringComparison.OrdinalIgnoreCase)).ToList();
68
69
//content = JArray.Parse(response);
- contents .AddRange(Contents.FromJson(response));
70
+ contents.AddRange(filteredContents);
71
}
72
73
return contents;
0 commit comments