From 17c31d1b19601e9b287563fa48bc6d6e629c61cd Mon Sep 17 00:00:00 2001 From: Colby Williams Date: Tue, 6 Oct 2020 09:02:29 -0400 Subject: [PATCH] Add HtmlUrl property to Team and Project models (#2249) --- Octokit/Models/Response/Project.cs | 8 +++++++- Octokit/Models/Response/Team.cs | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Octokit/Models/Response/Project.cs b/Octokit/Models/Response/Project.cs index 5552386b..575e8852 100644 --- a/Octokit/Models/Response/Project.cs +++ b/Octokit/Models/Response/Project.cs @@ -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 /// public string OwnerUrl { get; protected set; } + /// + /// The HTML URL for this project. + /// + public string HtmlUrl { get; protected set; } + /// /// The URL for this project. /// diff --git a/Octokit/Models/Response/Team.cs b/Octokit/Models/Response/Team.cs index d4e934f6..99aaedd4 100644 --- a/Octokit/Models/Response/Team.cs +++ b/Octokit/Models/Response/Team.cs @@ -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 /// public string Url { get; protected set; } + /// + /// The HTML URL for this team. + /// + public string HtmlUrl { get; protected set; } + /// /// team id ///