2024-05-16 18:34:26 +03:00
|
|
|
|
namespace TeamOctolings.Octobot;
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
|
|
|
|
public static class BuildInfo
|
|
|
|
|
{
|
2024-08-24 18:50:32 +03:00
|
|
|
|
public const string WebsiteUrl = "https://teamoctolings.github.io/Octobot";
|
|
|
|
|
|
|
|
|
|
private const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot";
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
2024-03-24 15:39:26 +03:00
|
|
|
|
public const string IssuesUrl = $"{RepositoryUrl}/issues";
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
2024-03-24 15:39:26 +03:00
|
|
|
|
public const string WikiUrl = $"{RepositoryUrl}/wiki";
|
2024-03-23 21:45:39 +03:00
|
|
|
|
|
2024-03-24 15:39:26 +03:00
|
|
|
|
private const string Commit = ThisAssembly.Git.Commit;
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
2024-03-24 15:39:26 +03:00
|
|
|
|
private const string Branch = ThisAssembly.Git.Branch;
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
2024-03-20 19:08:59 +03:00
|
|
|
|
public static bool IsDirty => ThisAssembly.Git.IsDirty;
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
2024-03-20 19:08:59 +03:00
|
|
|
|
public static string Version => IsDirty ? $"{Branch}-{Commit}-dirty" : $"{Branch}-{Commit}";
|
2024-03-19 20:51:32 +03:00
|
|
|
|
}
|