2024-03-19 20:51:32 +03:00
|
|
|
|
namespace Octobot;
|
|
|
|
|
|
|
|
|
|
public static class BuildInfo
|
|
|
|
|
{
|
2024-03-20 19:08:59 +03:00
|
|
|
|
public static string RepositoryUrl => ThisAssembly.Git.RepositoryUrl;
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
2024-03-20 19:08:59 +03:00
|
|
|
|
public static string IssuesUrl => $"{RepositoryUrl}/issues";
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
2024-03-20 19:08:59 +03:00
|
|
|
|
private static string Commit => ThisAssembly.Git.Commit;
|
2024-03-19 20:51:32 +03:00
|
|
|
|
|
2024-03-20 19:08:59 +03:00
|
|
|
|
private static 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
|
|
|
|
}
|