Add HtmlUrl property to Team and Project models (#2249)

This commit is contained in:
Colby Williams
2020-10-06 09:02:29 -04:00
committed by GitHub
parent df77be29b1
commit 17c31d1b19
2 changed files with 14 additions and 2 deletions
+7 -1
View File
@@ -9,10 +9,11 @@ namespace Octokit
{
public Project() { }
public Project(string ownerUrl, string url, int id, string nodeId, string name, string body, int number, ItemState state, User creator, DateTimeOffset createdAt, DateTimeOffset updatedAt)
public Project(string ownerUrl, string url, string htmlUrl, int id, string nodeId, string name, string body, int number, ItemState state, User creator, DateTimeOffset createdAt, DateTimeOffset updatedAt)
{
OwnerUrl = ownerUrl;
Url = url;
HtmlUrl = htmlUrl;
Id = id;
NodeId = nodeId;
Name = name;
@@ -29,6 +30,11 @@ namespace Octokit
/// </summary>
public string OwnerUrl { get; protected set; }
/// <summary>
/// The HTML URL for this project.
/// </summary>
public string HtmlUrl { get; protected set; }
/// <summary>
/// The URL for this project.
/// </summary>
+7 -1
View File
@@ -12,9 +12,10 @@ namespace Octokit
{
public Team() { }
public Team(string url, int id, string nodeId, string slug, string name, string description, TeamPrivacy privacy, PermissionLevel permission, int membersCount, int reposCount, Organization organization, Team parent, string ldapDistinguishedName)
public Team(string url, string htmlUrl, int id, string nodeId, string slug, string name, string description, TeamPrivacy privacy, PermissionLevel permission, int membersCount, int reposCount, Organization organization, Team parent, string ldapDistinguishedName)
{
Url = url;
HtmlUrl = htmlUrl;
Id = id;
NodeId = nodeId;
Slug = slug;
@@ -34,6 +35,11 @@ namespace Octokit
/// </summary>
public string Url { get; protected set; }
/// <summary>
/// The HTML URL for this team.
/// </summary>
public string HtmlUrl { get; protected set; }
/// <summary>
/// team id
/// </summary>