-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds MaintainerCanModify to PullRequest #1771
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
67bb3f8
Adds MaintainerCanModify to PullRequest
Cyberboss ea59264
Make MaintainerCanModify nullable
Cyberboss 901859e
Tweak MaintainerCanModify doc comment
Cyberboss 2cb4e5f
Add MaintainerCanModify to NewPullRequest
Cyberboss 8276b1e
Add MaintainerCanModify to PullRequestUpdate
Cyberboss f20dfa7
Update NewPulRequest tests
Cyberboss 6d72c42
Convert tabs to spaces
Cyberboss 04c829e
Fix PullRequestUpdate and NewPullRequest doc comments
Cyberboss 6c2c31e
Revert "Update NewPulRequest tests"
Cyberboss 56819df
Make MaintainerCanModify fields nullable
Cyberboss f72b218
tweak doco comment and make setter public so it can be used
ryangribble 3328977
Merge remote-tracking branch 'upstream/master' into patch-1
ryangribble File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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<User> assignees, bool? mergeable, MergeableState? mergeableState, User mergedBy, string mergeCommitSha, int comments, int commits, int additions, int deletions, int changedFiles, Milestone milestone, bool locked, IReadOnlyList<User> 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<User> 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<User> 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 | |
/// </summary> | ||
public bool Locked { get; protected set; } | ||
|
||
/// <summary> | ||
/// If users with write access to the base repository can push to the HEAD branch | ||
/// </summary> | ||
public bool MaintainerCanModify { get; protected set; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should make this nullable |
||
|
||
/// <summary> | ||
/// Users requested for review | ||
/// </summary> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we reword this slightly?
"Whether maintainers of the base repository can push to the HEAD branch"