From 0530f5489dd9432451dc87f269d14fc46874d5d5 Mon Sep 17 00:00:00 2001 From: Mordechai Zuber Date: Wed, 3 Feb 2016 22:06:13 +0200 Subject: [PATCH] Add Locked property to PullRequest --- Octokit/Models/Response/PullRequest.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Octokit/Models/Response/PullRequest.cs b/Octokit/Models/Response/PullRequest.cs index 131a53acea..8ede7ac64a 100644 --- a/Octokit/Models/Response/PullRequest.cs +++ b/Octokit/Models/Response/PullRequest.cs @@ -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, Milestone milestone) + 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, bool locked) { Url = url; HtmlUrl = htmlUrl; @@ -42,6 +42,7 @@ public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl Deletions = deletions; ChangedFiles = changedFiles; Milestone = milestone; + Locked = locked; } /// @@ -182,6 +183,11 @@ public bool Merged /// public int ChangedFiles { get; protected set; } + /// + /// If the issue is locked or not + /// + public bool Locked { get; protected set; } + internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Number: {0} State: {1}", Number, State); }