[FEAT] Improve repo debugger display for Repository response

Show the repo's owner login in the debugger display string for `Repository` instead of the type name.
This commit is contained in:
Martin Costello
2023-05-09 15:46:25 +01:00
committed by GitHub
parent 9adcf16362
commit ecf5af499e
+2 -2
View File
@@ -159,7 +159,7 @@ namespace Octokit
public RepositoryVisibility? Visibility { get; private set; }
public bool? AllowAutoMerge { get; private set; }
public bool? AllowUpdateBranch { get; private set; }
internal string DebuggerDisplay
@@ -167,7 +167,7 @@ namespace Octokit
get
{
return string.Format(CultureInfo.InvariantCulture,
"Repository: Id: {0} Owner: {1}, Name: {2}", Id, Owner, Name);
"Repository: Id: {0} Owner: {1}, Name: {2}", Id, Owner?.Login, Name);
}
}
}