Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/bc-readme-gen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ namespace bc_readme_gen
{
class Program
{

static IList<String> GetFileNamesExcludedFromBreakingChangeDocuments()
{
return new List<String>()
{
"! Template.md",
"README.md",
"!categories.md"
};
}

static void Main(string[] args)
{
if (args == null || args.Length == 0)
Expand All @@ -24,10 +35,11 @@ static void Main(string[] args)
var bcdir = new DirectoryInfo(bcpath);
const string versionIntroduced = "### Version Introduced";

IList<String> 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;
}
Expand Down