From 0e7d8887284938dddf956a4254be4fcb4c68325b Mon Sep 17 00:00:00 2001 From: Chase S Date: Fri, 9 Dec 2022 00:07:45 +0000 Subject: [PATCH] Only 'commit' code files When creating the example repo in azure devops, non-code files sometimes start with non-standard characters (e.g. a BOM character). As a result we are unable to successfully JSON encode the body to create the repo, resulting in the setup script erroring out. --- azure_devops/bootstrap/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure_devops/bootstrap/setup b/azure_devops/bootstrap/setup index 6b5f037..039ec80 100755 --- a/azure_devops/bootstrap/setup +++ b/azure_devops/bootstrap/setup @@ -92,7 +92,7 @@ def create_repository(options) }], commits: [{ comment: "Initial commit.", - changes: Dir[File.join(tmp_dir, "**/*")].reject {|f| File.directory?(f) }.map do |entry| + changes: Dir[File.join(tmp_dir, "**/*.{cs,csproj,sln}")].reject {|f| File.directory?(f) }.map do |entry| { changeType: "add", item: {