Skip to content

Commit

Permalink
Merge pull request #1353 from maddin2016/add-closed-by-key
Browse files Browse the repository at this point in the history
Add closed_by key to Issue
  • Loading branch information
ryangribble committed Jun 8, 2016
2 parents b256157 + a3ee538 commit 7f5d856
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Octokit/Models/Response/Issue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Issue
{
public Issue() { }

public Issue(Uri url, Uri htmlUrl, Uri commentsUrl, Uri eventsUrl, int number, ItemState state, string title, string body, User user, IReadOnlyList<Label> labels, User assignee, Milestone milestone, int comments, PullRequest pullRequest, DateTimeOffset? closedAt, DateTimeOffset createdAt, DateTimeOffset? updatedAt, int id, bool locked, Repository repository)
public Issue(Uri url, Uri htmlUrl, Uri commentsUrl, Uri eventsUrl, int number, ItemState state, string title, string body, User closedBy, User user, IReadOnlyList<Label> labels, User assignee, Milestone milestone, int comments, PullRequest pullRequest, DateTimeOffset? closedAt, DateTimeOffset createdAt, DateTimeOffset? updatedAt, int id, bool locked, Repository repository)
{
Id = id;
Url = url;
Expand All @@ -21,6 +21,7 @@ public Issue(Uri url, Uri htmlUrl, Uri commentsUrl, Uri eventsUrl, int number, I
State = state;
Title = title;
Body = body;
ClosedBy = closedBy;
User = user;
Labels = labels;
Assignee = assignee;
Expand Down Expand Up @@ -79,6 +80,11 @@ public Issue(Uri url, Uri htmlUrl, Uri commentsUrl, Uri eventsUrl, int number, I
/// </summary>
public string Body { get; protected set; }

/// <summary>
/// Details about the user who has closed this issue.
/// </summary>
public User ClosedBy { get; protected set; }

/// <summary>
/// The user that created the issue.
/// </summary>
Expand Down

0 comments on commit 7f5d856

Please sign in to comment.