fix: do not use RepositoryUrl from GitInfo ()

GitInfo's `RepositoryUrl` string depends on origin URL, which is
unvalidated user input that isn't even guaranteed to exist. This can
cause issues that are almost impossible to
debug

Closes 
This commit is contained in:
Octol1ttle 2024-03-24 17:39:26 +05:00 committed by GitHub
parent a9509deb1c
commit 844615e8bf
Signed by: GitHub
GPG key ID: B5690EEEBB952194

View file

@ -2,15 +2,15 @@
public static class BuildInfo
{
public static string RepositoryUrl => ThisAssembly.Git.RepositoryUrl;
public const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot";
public static string IssuesUrl => $"{RepositoryUrl}/issues";
public const string IssuesUrl = $"{RepositoryUrl}/issues";
public static string WikiUrl => $"{RepositoryUrl}/wiki";
public const string WikiUrl = $"{RepositoryUrl}/wiki";
private static string Commit => ThisAssembly.Git.Commit;
private const string Commit = ThisAssembly.Git.Commit;
private static string Branch => ThisAssembly.Git.Branch;
private const string Branch = ThisAssembly.Git.Branch;
public static bool IsDirty => ThisAssembly.Git.IsDirty;