Skip to content

Commit

Permalink
Merge pull request #1075 from Eilon/eilon/add-pr-milestone
Browse files Browse the repository at this point in the history
Add Milestone property to PullRequest
  • Loading branch information
haacked committed Feb 1, 2016
2 parents 5f2cc4c + 8ee3029 commit bbdf133
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 bbdf133

Please sign in to comment.