mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
52 lines
838 B
C#
52 lines
838 B
C#
namespace Octobot;
|
|
|
|
public static class BuildInfo
|
|
{
|
|
public static string RepositoryUrl
|
|
{
|
|
get
|
|
{
|
|
return ThisAssembly.Git.RepositoryUrl;
|
|
}
|
|
}
|
|
|
|
public static string Issues
|
|
{
|
|
get
|
|
{
|
|
return $"{RepositoryUrl}/issues";
|
|
}
|
|
}
|
|
|
|
private static string Commit
|
|
{
|
|
get
|
|
{
|
|
return ThisAssembly.Git.Commit;
|
|
}
|
|
}
|
|
|
|
private static string Branch
|
|
{
|
|
get
|
|
{
|
|
return ThisAssembly.Git.Branch;
|
|
}
|
|
}
|
|
|
|
private static bool IsDirty
|
|
{
|
|
get
|
|
{
|
|
return ThisAssembly.Git.IsDirty;
|
|
}
|
|
}
|
|
|
|
public static string Version
|
|
{
|
|
get
|
|
{
|
|
return IsDirty ? $"{Branch}-{Commit}-dirty" : $"{Branch}-{Commit}";
|
|
}
|
|
}
|
|
}
|