1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 09:09:00 +03:00
Octobot/src/BuildInfo.cs

19 lines
542 B
C#
Raw Normal View History

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