Add merge_commit_sha to PullRequest model (#1562)

* Add merge_commit_sha to PullRequest model

* Update MergeCommitSha summary
This commit is contained in:
Alex Perovich
2017-03-10 18:56:53 -06:00
committed by Ryan Gribble
parent 16f7d86d69
commit a952eb86c0
+11 -1
View File
@@ -15,7 +15,7 @@ namespace Octokit
Number = number;
}
public PullRequest(long id, 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, IReadOnlyList<User> assignees, bool? mergeable, User mergedBy, int comments, int commits, int additions, int deletions, int changedFiles, Milestone milestone, bool locked)
public PullRequest(long id, 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, IReadOnlyList<User> assignees, bool? mergeable, User mergedBy, string mergeCommitSha, int comments, int commits, int additions, int deletions, int changedFiles, Milestone milestone, bool locked)
{
Id = id;
Url = url;
@@ -39,6 +39,7 @@ namespace Octokit
Assignees = assignees;
Mergeable = mergeable;
MergedBy = mergedBy;
MergeCommitSha = mergeCommitSha;
Comments = comments;
Commits = commits;
Additions = additions;
@@ -171,6 +172,15 @@ namespace Octokit
/// </summary>
public User MergedBy { get; protected set; }
/// <summary>
/// The value of this field changes depending on the state of the pull request.
/// Not Merged - the hash of the test commit used to determine mergability.
/// Merged with merge commit - the hash of said merge commit.
/// Merged via squashing - the hash of the squashed commit added to the base branch.
/// Merged via rebase - the hash of the commit that the base branch was updated to.
/// </summary>
public string MergeCommitSha { get; protected set; }
/// <summary>
/// Total number of comments contained in the pull request.
/// </summary>