From 0f4ef3059b8db7ce6ecca50a1bfd918388fbd55a Mon Sep 17 00:00:00 2001 From: mctaylors Date: Sun, 7 Apr 2024 15:23:14 +0300 Subject: [PATCH] don't hardcode the branch --- src/BuildInfo.cs | 2 +- src/Commands/AboutCommandGroup.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BuildInfo.cs b/src/BuildInfo.cs index 34d511b..f507c80 100644 --- a/src/BuildInfo.cs +++ b/src/BuildInfo.cs @@ -10,7 +10,7 @@ public static class BuildInfo private const string Commit = ThisAssembly.Git.Commit; - private const string Branch = ThisAssembly.Git.Branch; + public const string Branch = ThisAssembly.Git.Branch; public static bool IsDirty => ThisAssembly.Git.IsDirty; diff --git a/src/Commands/AboutCommandGroup.cs b/src/Commands/AboutCommandGroup.cs index cf7e882..4aa9701 100644 --- a/src/Commands/AboutCommandGroup.cs +++ b/src/Commands/AboutCommandGroup.cs @@ -118,7 +118,7 @@ public class AboutCommandGroup : CommandGroup .WithSmallTitle(string.Format(Messages.AboutBot, bot.Username), bot) .WithDescription(builder.ToString()) .WithColour(ColorsList.Cyan) - .WithImageUrl("https://git.mctaylors.ru/TeamInklings/OctobotStealth/media/branch/stealth/docs/octobot-banner.png") + .WithImageUrl($"https://git.mctaylors.ru/TeamInklings/OctobotStealth/media/branch/{BuildInfo.Branch}/docs/octobot-banner.png") .WithFooter(string.Format(Messages.Version, BuildInfo.Version)) .Build();