mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
Merge branch 'master' into log-result-failures
This commit is contained in:
commit
c1d0dd096e
2 changed files with 7 additions and 43 deletions
|
@ -42,7 +42,7 @@ csharp_space_between_square_brackets = false
|
|||
csharp_style_expression_bodied_accessors = false:warning
|
||||
csharp_style_expression_bodied_constructors = false:warning
|
||||
csharp_style_expression_bodied_methods = false:warning
|
||||
csharp_style_expression_bodied_properties = false:warning
|
||||
csharp_style_expression_bodied_properties = true:warning
|
||||
csharp_style_namespace_declarations = file_scoped:warning
|
||||
csharp_style_prefer_utf8_string_literals = true:warning
|
||||
csharp_style_var_elsewhere = true:warning
|
||||
|
|
|
@ -2,51 +2,15 @@
|
|||
|
||||
public static class BuildInfo
|
||||
{
|
||||
public static string RepositoryUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
return ThisAssembly.Git.RepositoryUrl;
|
||||
}
|
||||
}
|
||||
public static string RepositoryUrl => ThisAssembly.Git.RepositoryUrl;
|
||||
|
||||
public static string IssuesUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
return $"{RepositoryUrl}/issues";
|
||||
}
|
||||
}
|
||||
public static string IssuesUrl => $"{RepositoryUrl}/issues";
|
||||
|
||||
private static string Commit
|
||||
{
|
||||
get
|
||||
{
|
||||
return ThisAssembly.Git.Commit;
|
||||
}
|
||||
}
|
||||
private static string Commit => ThisAssembly.Git.Commit;
|
||||
|
||||
private static string Branch
|
||||
{
|
||||
get
|
||||
{
|
||||
return ThisAssembly.Git.Branch;
|
||||
}
|
||||
}
|
||||
private static string Branch => ThisAssembly.Git.Branch;
|
||||
|
||||
public static bool IsDirty
|
||||
{
|
||||
get
|
||||
{
|
||||
return ThisAssembly.Git.IsDirty;
|
||||
}
|
||||
}
|
||||
public static bool IsDirty => ThisAssembly.Git.IsDirty;
|
||||
|
||||
public static string Version
|
||||
{
|
||||
get
|
||||
{
|
||||
return IsDirty ? $"{Branch}-{Commit}-dirty" : $"{Branch}-{Commit}";
|
||||
}
|
||||
}
|
||||
public static string Version => IsDirty ? $"{Branch}-{Commit}-dirty" : $"{Branch}-{Commit}";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue