From dd75bcf1791d6cdc9f52b59f7d46708aeec32f3d Mon Sep 17 00:00:00 2001 From: notauserx Date: Fri, 12 Aug 2022 20:34:27 +0600 Subject: [PATCH 1/6] add active lock reason to PR --- Octokit/Clients/IssuesClient.cs | 8 ++++---- Octokit/Models/Response/PullRequest.cs | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Octokit/Clients/IssuesClient.cs b/Octokit/Clients/IssuesClient.cs index 508e6c2180..f6708029a2 100644 --- a/Octokit/Clients/IssuesClient.cs +++ b/Octokit/Clients/IssuesClient.cs @@ -494,7 +494,7 @@ public Task Update(long repositoryId, int number, IssueUpdate issueUpdate } /// - /// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue. + /// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue or pull request's conversation. /// /// https://developer.github.com/v3/issues/#lock-an-issue /// The owner of the repository @@ -511,7 +511,7 @@ public Task Lock(string owner, string name, int number, LockReason? lockReason = } /// - /// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue. + /// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue or pull request's conversation. /// /// https://developer.github.com/v3/issues/#lock-an-issue /// The Id of the repository @@ -524,7 +524,7 @@ public Task Lock(long repositoryId, int number, LockReason? lockReason = null) } /// - /// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue. + /// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue or pull request's conversation. /// /// https://developer.github.com/v3/issues/#unlock-an-issue /// The owner of the repository @@ -540,7 +540,7 @@ public Task Unlock(string owner, string name, int number) } /// - /// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue. + /// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue or pull request's conversation. /// /// https://developer.github.com/v3/issues/#unlock-an-issue /// The Id of the repository diff --git a/Octokit/Models/Response/PullRequest.cs b/Octokit/Models/Response/PullRequest.cs index 9ca99408ad..e7690c7d44 100644 --- a/Octokit/Models/Response/PullRequest.cs +++ b/Octokit/Models/Response/PullRequest.cs @@ -16,7 +16,7 @@ public PullRequest(int number) Number = number; } - public PullRequest(long id, string nodeId, string url, string htmlUrl, string diffUrl, string patchUrl, string issueUrl, string 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 assignees, bool draft, bool? mergeable, MergeableState? mergeableState, User mergedBy, string mergeCommitSha, int comments, int commits, int additions, int deletions, int changedFiles, Milestone milestone, bool locked, bool? maintainerCanModify, IReadOnlyList requestedReviewers, IReadOnlyList requestedTeams, IReadOnlyList