From 57db3887c95883f200129cb66e02dea4fe28a64c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:32:19 +0000 Subject: [PATCH 1/4] Initial plan From cd6bbd5f7a08715c62a994570ac5f001d1d7290d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:37:43 +0000 Subject: [PATCH 2/4] Bump dependency versions Co-authored-by: kzu <169707+kzu@users.noreply.github.com> --- src/GroupsGenerator/GroupsGenerator.csproj | 4 ++-- src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj | 6 +++--- src/ISBN/ISBN.csproj | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/GroupsGenerator/GroupsGenerator.csproj b/src/GroupsGenerator/GroupsGenerator.csproj index 3bf60d6..2f42245 100644 --- a/src/GroupsGenerator/GroupsGenerator.csproj +++ b/src/GroupsGenerator/GroupsGenerator.csproj @@ -12,11 +12,11 @@ - + - + diff --git a/src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj b/src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj index f2625dd..15761c7 100644 --- a/src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj +++ b/src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj @@ -7,9 +7,9 @@ - - - + + + diff --git a/src/ISBN/ISBN.csproj b/src/ISBN/ISBN.csproj index b1e7494..74cd604 100644 --- a/src/ISBN/ISBN.csproj +++ b/src/ISBN/ISBN.csproj @@ -10,10 +10,10 @@ - + - - + + From ebd0de4dfce1a5acfc0640846c32ddc0d48c9c99 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Oct 2026 11:38:55 +0000 Subject: [PATCH 3/4] Keep Roslyn dependency versions unchanged Co-authored-by: kzu <169707+kzu@users.noreply.github.com> --- src/GroupsGenerator/GroupsGenerator.cs | 12 +++++++++++- src/GroupsGenerator/GroupsGenerator.csproj | 2 +- src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/GroupsGenerator/GroupsGenerator.cs b/src/GroupsGenerator/GroupsGenerator.cs index ea1fd4b..bdcc52d 100644 --- a/src/GroupsGenerator/GroupsGenerator.cs +++ b/src/GroupsGenerator/GroupsGenerator.cs @@ -8,6 +8,7 @@ using Microsoft.CodeAnalysis.Text; using Newtonsoft.Json.Linq; using Scriban; +using Scriban.Runtime; using static System.Net.Mime.MediaTypeNames; public record Range(string Min, string Max); @@ -85,7 +86,16 @@ public static string RenderTemplate(string json) template = Template.Parse(reader.ReadToEnd()); } - var output = template.Render(new { map = groups }, member => member.Name); + var context = new TemplateContext + { + LoopLimit = int.MaxValue, + MemberRenamer = member => member.Name + }; + var model = new ScriptObject(); + model.Import(new { map = groups }, renamer: member => member.Name); + context.PushGlobal(model); + + var output = template.Render(context); return output; } diff --git a/src/GroupsGenerator/GroupsGenerator.csproj b/src/GroupsGenerator/GroupsGenerator.csproj index 2f42245..1fcee66 100644 --- a/src/GroupsGenerator/GroupsGenerator.csproj +++ b/src/GroupsGenerator/GroupsGenerator.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj b/src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj index 15761c7..a310d8b 100644 --- a/src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj +++ b/src/ISBN.CodeAnalysis/ISBN.CodeAnalysis.csproj @@ -9,7 +9,7 @@ - + From e279a11f7caea3fbe226f6dce015f84c3830f5b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Oct 2026 11:48:16 +0000 Subject: [PATCH 4/4] Hold back Scriban dependency update Co-authored-by: kzu <169707+kzu@users.noreply.github.com> --- src/GroupsGenerator/GroupsGenerator.cs | 12 +----------- src/GroupsGenerator/GroupsGenerator.csproj | 2 +- src/ISBN/ISBN.csproj | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/GroupsGenerator/GroupsGenerator.cs b/src/GroupsGenerator/GroupsGenerator.cs index bdcc52d..ea1fd4b 100644 --- a/src/GroupsGenerator/GroupsGenerator.cs +++ b/src/GroupsGenerator/GroupsGenerator.cs @@ -8,7 +8,6 @@ using Microsoft.CodeAnalysis.Text; using Newtonsoft.Json.Linq; using Scriban; -using Scriban.Runtime; using static System.Net.Mime.MediaTypeNames; public record Range(string Min, string Max); @@ -86,16 +85,7 @@ public static string RenderTemplate(string json) template = Template.Parse(reader.ReadToEnd()); } - var context = new TemplateContext - { - LoopLimit = int.MaxValue, - MemberRenamer = member => member.Name - }; - var model = new ScriptObject(); - model.Import(new { map = groups }, renamer: member => member.Name); - context.PushGlobal(model); - - var output = template.Render(context); + var output = template.Render(new { map = groups }, member => member.Name); return output; } diff --git a/src/GroupsGenerator/GroupsGenerator.csproj b/src/GroupsGenerator/GroupsGenerator.csproj index 1fcee66..3bf60d6 100644 --- a/src/GroupsGenerator/GroupsGenerator.csproj +++ b/src/GroupsGenerator/GroupsGenerator.csproj @@ -16,7 +16,7 @@ - + diff --git a/src/ISBN/ISBN.csproj b/src/ISBN/ISBN.csproj index 74cd604..4f579e5 100644 --- a/src/ISBN/ISBN.csproj +++ b/src/ISBN/ISBN.csproj @@ -13,7 +13,7 @@ - +