Skip to content

Commit

Permalink
added Octokit.PullRequest.RequestedTeams property (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1seL authored Mar 4, 2020
1 parent c94cd05 commit a2b0d87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Octokit/Models/Response/PullRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<User> 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<User> requestedReviewers, IReadOnlyList<Label> labels)
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<User> 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<User> requestedReviewers, IReadOnlyList<Team> requestedTeams, IReadOnlyList<Label> labels)
{
Id = id;
NodeId = nodeId;
Expand Down Expand Up @@ -53,6 +53,7 @@ public PullRequest(long id, string nodeId, string url, string htmlUrl, string di
Locked = locked;
MaintainerCanModify = maintainerCanModify;
RequestedReviewers = requestedReviewers;
RequestedTeams = requestedTeams;
Labels = labels;
}

Expand Down Expand Up @@ -242,6 +243,11 @@ public bool Merged
/// Users requested for review
/// </summary>
public IReadOnlyList<User> RequestedReviewers { get; protected set; }

/// <summary>
/// Teams requested for review
/// </summary>
public IReadOnlyList<Team> RequestedTeams { get; protected set; }

public IReadOnlyList<Label> Labels { get; protected set; }

Expand Down

0 comments on commit a2b0d87

Please sign in to comment.