diff --git a/src/bc-readme-gen/Program.cs b/src/bc-readme-gen/Program.cs index 1273e48c9..06f723258 100755 --- a/src/bc-readme-gen/Program.cs +++ b/src/bc-readme-gen/Program.cs @@ -7,6 +7,17 @@ namespace bc_readme_gen { class Program { + + static IList GetFileNamesExcludedFromBreakingChangeDocuments() + { + return new List() + { + "! Template.md", + "README.md", + "!categories.md" + }; + } + static void Main(string[] args) { if (args == null || args.Length == 0) @@ -24,10 +35,11 @@ static void Main(string[] args) var bcdir = new DirectoryInfo(bcpath); const string versionIntroduced = "### Version Introduced"; + IList fileNamesExcludedFromBreakingChangeDocuments = GetFileNamesExcludedFromBreakingChangeDocuments(); foreach(var changeFile in bcdir.GetFiles("*.md")) { - if (changeFile.Name == "! Template.md" || changeFile.Name == "README.md" || changeFile.Name == "!categories.md") + if(fileNamesExcludedFromBreakingChangeDocuments.Contains(changeFile.Name)) { continue; }