diff --git a/Octokit/Models/Request/NewPullRequest.cs b/Octokit/Models/Request/NewPullRequest.cs
index 036772513e..d383b227a7 100644
--- a/Octokit/Models/Request/NewPullRequest.cs
+++ b/Octokit/Models/Request/NewPullRequest.cs
@@ -41,6 +41,11 @@ public NewPullRequest(string title, string head, string baseRef)
///
public string Head { get; private set; }
+ ///
+ /// Whether maintainers of the base repository can push to the HEAD branch (optional).
+ ///
+ public bool? MaintainerCanModify { get; set; }
+
///
/// Body of the pull request (optional)
///
diff --git a/Octokit/Models/Request/PullRequestUpdate.cs b/Octokit/Models/Request/PullRequestUpdate.cs
index 268e171ced..853ccafa7e 100644
--- a/Octokit/Models/Request/PullRequestUpdate.cs
+++ b/Octokit/Models/Request/PullRequestUpdate.cs
@@ -29,6 +29,11 @@ public class PullRequestUpdate
///
public string Base { get; set; }
+ ///
+ /// Whether maintainers of the base repository can push to the HEAD branch.
+ ///
+ public bool? MaintainerCanModify { get; set; }
+
internal string DebuggerDisplay
{
get
diff --git a/Octokit/Models/Response/PullRequest.cs b/Octokit/Models/Response/PullRequest.cs
index 56b517e81a..51aa95da94 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 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? mergeable, MergeableState? mergeableState, User mergedBy, string mergeCommitSha, int comments, int commits, int additions, int deletions, int changedFiles, Milestone milestone, bool locked, IReadOnlyList requestedReviewers)
+ public PullRequest(long id, 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? 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)
{
Id = id;
Url = url;
@@ -49,6 +49,7 @@ public PullRequest(long id, string url, string htmlUrl, string diffUrl, string p
ChangedFiles = changedFiles;
Milestone = milestone;
Locked = locked;
+ MaintainerCanModify = maintainerCanModify;
RequestedReviewers = requestedReviewers;
}
@@ -219,6 +220,11 @@ public bool Merged
///
public bool Locked { get; protected set; }
+ ///
+ /// Whether maintainers of the base repository can push to the HEAD branch
+ ///
+ public bool? MaintainerCanModify { get; protected set; }
+
///
/// Users requested for review
///