diff --git a/tools/Tgstation.Server.ReleaseNotes/Program.cs b/tools/Tgstation.Server.ReleaseNotes/Program.cs index 3e64ff565b..fd231463d2 100644 --- a/tools/Tgstation.Server.ReleaseNotes/Program.cs +++ b/tools/Tgstation.Server.ReleaseNotes/Program.cs @@ -414,6 +414,7 @@ async ValueTask DeleteMilestone(Milestone milestoneToDelete, int moveToMilestone { { Component.Configuration, configVersion }, { Component.RestApi, restVersion }, + { Component.GraphQLApi, graphQLVersion }, { Component.DreamMakerApi, dmApiVersion }, { Component.InteropApi, interopVersion }, { Component.WebControlPanel, webControlVersion }, @@ -513,6 +514,7 @@ async ValueTask DeleteMilestone(Milestone milestoneToDelete, int moveToMilestone static string GetComponentDisplayName(Component component, bool debian) => component switch { Component.RestApi => debian ? "the REST API" : "REST API", + Component.GraphQLApi => debian ? "the GraphQL API" : "GraphQL API", Component.InteropApi => debian ? "the Interop API" : "Interop API", Component.Configuration => debian ? "the TGS configuration" : "**Configuration**", Component.DreamMakerApi => debian ? "the DreamMaker API" : "DreamMaker API", @@ -1166,15 +1168,23 @@ static async Task GenerateNotes(IGitHubClient client, Dictionary> { { Component.RestApi, releases - .Where(x => x.TagName.StartsWith("api-v")) - .Select(x => Version.Parse(x.TagName[5..])) + .Where(x => x.TagName.StartsWith(ApiTagPrefix)) + .Select(x => Version.Parse(x.TagName[ApiTagPrefix.Length..])) + .OrderBy(x => x) + .ToHashSet() }, + { Component.GraphQLApi, releases + .Where(x => x.TagName.StartsWith(GraphQLTagPrefix)) + .Select(x => Version.Parse(x.TagName[GraphQLTagPrefix.Length..])) .OrderBy(x => x) .ToHashSet() }, { Component.DreamMakerApi, releases - .Where(x => x.TagName.StartsWith("dmapi-v")) - .Select(x => Version.Parse(x.TagName[7..])) + .Where(x => x.TagName.StartsWith(DMApiTagPrefix)) + .Select(x => Version.Parse(x.TagName[DMApiTagPrefix.Length..])) .OrderBy(x => x) .ToHashSet() }, { Component.NugetCommon, await nugetCommonVersions },