@@ -8,25 +8,29 @@ public class GitPullRequests
88 public GitPullRequest [ ] Value { get ; set ; } = [ ] ;
99}
1010
11- public class GitPullRequest
11+ public class GitPullRequestBase
12+ {
13+ public string Title { get ; set ; } = string . Empty ;
14+ public string Description { get ; set ; } = string . Empty ;
15+ public string SourceRefName { get ; set ; } = string . Empty ;
16+ public string TargetRefName { get ; set ; } = string . Empty ;
17+ public IdentityRef CreatedBy { get ; set ; } = new ( ) ;
18+ public bool IsDraft { get ; set ; }
19+ public IdentityRef [ ] Reviewers { get ; set ; } = [ ] ;
20+ }
21+
22+ public class GitPullRequest : GitPullRequestBase
1223{
1324 public Repository Repository { get ; set ; } = new ( ) ;
1425 public int PullRequestId { get ; set ; }
1526 public int CodeReviewId { get ; set ; }
1627 public PullRequestStatus Status { get ; set ; }
17- public User CreatedBy { get ; set ; } = new ( ) ;
1828 public DateTime CreationDate { get ; set ; }
19- public string Title { get ; set ; } = string . Empty ;
20- public string Description { get ; set ; } = string . Empty ;
21- public string SourceRefName { get ; set ; } = string . Empty ;
22- public string TargetRefName { get ; set ; } = string . Empty ;
2329 public PullRequestAsyncStatus MergeStatus { get ; set ; }
24- public bool IsDraft { get ; set ; }
2530 public Guid MergeId { get ; set ; }
2631 public GitCommitRef LastMergeSourceCommit { get ; set ; } = new ( ) ;
2732 public GitCommitRef LastMergeTargetCommit { get ; set ; } = new ( ) ;
2833 public GitCommitRef LastMergeCommit { get ; set ; } = new ( ) ;
29- public User [ ] Reviewers { get ; set ; } = [ ] ;
3034 public bool SupportsIterations { get ; set ; }
3135}
3236
0 commit comments