Skip to content

Commit

Permalink
Add Milestone property to PullRequest
Browse files Browse the repository at this point in the history
Fixes #1071
  • Loading branch information
Eilon committed Jan 31, 2016
1 parent 59df91d commit 8ee3029
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Octokit/Models/Response/PullRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public PullRequest(int number)
Number = number;
}

public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl, Uri statusesUrl, int number, ItemState state, string title, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, DateTimeOffset? closedAt, DateTimeOffset? mergedAt, GitReference head, GitReference @base, User user, User assignee, bool? mergeable, User mergedBy, int comments, int commits, int additions, int deletions, int changedFiles)
public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl, Uri statusesUrl, int number, ItemState state, string title, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, DateTimeOffset? closedAt, DateTimeOffset? mergedAt, GitReference head, GitReference @base, User user, User assignee, bool? mergeable, User mergedBy, int comments, int commits, int additions, int deletions, int changedFiles, Milestone milestone)
{
Url = url;
HtmlUrl = htmlUrl;
Expand All @@ -41,6 +41,7 @@ public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl
Additions = additions;
Deletions = deletions;
ChangedFiles = changedFiles;
Milestone = milestone;
}

/// <summary>
Expand Down Expand Up @@ -133,6 +134,11 @@ public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl
/// </summary>
public User Assignee { get; protected set; }

/// <summary>
/// The milestone, if any, that this pull request is assigned to.
/// </summary>
public Milestone Milestone { get; protected set; }

/// <summary>
/// Whether or not the pull request has been merged.
/// </summary>
Expand Down

0 comments on commit 8ee3029

Please sign in to comment.