1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 08:51:12 +03:00
Octobot/TeamOctolings.Octobot/BuildInfo.cs
Macintxsh afd0141c13
/about: Replace repo link with website link (#328)
A some sort of UX change. Repository link will be still accessible from
the website.
2024-08-24 15:50:32 +00:00

20 lines
640 B
C#

namespace TeamOctolings.Octobot;
public static class BuildInfo
{
public const string WebsiteUrl = "https://teamoctolings.github.io/Octobot";
private const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot";
public const string IssuesUrl = $"{RepositoryUrl}/issues";
public const string WikiUrl = $"{RepositoryUrl}/wiki";
private const string Commit = ThisAssembly.Git.Commit;
private const string Branch = ThisAssembly.Git.Branch;
public static bool IsDirty => ThisAssembly.Git.IsDirty;
public static string Version => IsDirty ? $"{Branch}-{Commit}-dirty" : $"{Branch}-{Commit}";
}