Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HtmlUrl property to Team and Project models #2249

Merged
merged 2 commits into from
Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Octokit/Models/Response/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ public class Project
{
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;
Expand All @@ -29,6 +30,11 @@ public Project(string ownerUrl, string url, int id, string nodeId, string name,
/// </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>
Expand Down
8 changes: 7 additions & 1 deletion Octokit/Models/Response/Team.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ public class Team
{
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;
Expand All @@ -34,6 +35,11 @@ public Team(string url, int id, string nodeId, string slug, string name, string
/// </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>
Expand Down