mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
Merge pull request #1089 from M-Zuber/PullRequest_Locked
Add Locked property to PullRequest
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Octokit
|
||||
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 @@ namespace Octokit
|
||||
Deletions = deletions;
|
||||
ChangedFiles = changedFiles;
|
||||
Milestone = milestone;
|
||||
Locked = locked;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -182,6 +183,11 @@ namespace Octokit
|
||||
/// </summary>
|
||||
public int ChangedFiles { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// If the issue is locked or not
|
||||
/// </summary>
|
||||
public bool Locked { get; protected set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get { return string.Format(CultureInfo.InvariantCulture, "Number: {0} State: {1}", Number, State); }
|
||||
|
||||
Reference in New Issue
Block a user