2024-03-19 20:51:32 +03:00
|
|
|
|
namespace Octobot;
|
|
|
|
|
|
|
|
|
|
public static class BuildInfo
|
|
|
|
|
{
|
|
|
|
|
public static string RepositoryUrl
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ThisAssembly.Git.RepositoryUrl;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string IssuesUrl
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return $"{RepositoryUrl}/issues";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static string Commit
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ThisAssembly.Git.Commit;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static string Branch
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ThisAssembly.Git.Branch;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-20 15:59:25 +03:00
|
|
|
|
public static bool IsDirty
|
2024-03-19 20:51:32 +03:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return ThisAssembly.Git.IsDirty;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string Version
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return IsDirty ? $"{Branch}-{Commit}-dirty" : $"{Branch}-{Commit}";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|