mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 21:09:51 +00:00
PullRequest model now contains all of necessary fields
- Initial integration test for pull requests (can't seem to do much without the tree api) - Added Observable unit tests for the rest of the pull request client
This commit is contained in:
committed by
Brendan Forster
parent
0db0307aa9
commit
654622371a
@@ -9,11 +9,6 @@ namespace Octokit
|
||||
/// </summary>
|
||||
public Uri Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The pull request number.
|
||||
/// </summary>
|
||||
public int Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL for the pull request page.
|
||||
/// </summary>
|
||||
@@ -28,5 +23,115 @@ namespace Octokit
|
||||
/// The URL for the pull request's patch (.patch) file.
|
||||
/// </summary>
|
||||
public Uri PatchUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL for the specific pull request issue.
|
||||
/// </summary>
|
||||
public Uri IssueUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL for the pull request statuses.
|
||||
/// </summary>
|
||||
public Uri StatusesUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The pull request number.
|
||||
/// </summary>
|
||||
public int Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the pull request is open or closed. The default is <see cref="ItemState.Open"/>.
|
||||
/// </summary>
|
||||
public ItemState State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Title of the pull request.
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The body (content) contained within the pull request.
|
||||
/// </summary>
|
||||
public string Body { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When the pull request was created.
|
||||
/// </summary>
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When the pull request was last updated.
|
||||
/// </summary>
|
||||
public DateTimeOffset UpdatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When the pull request was closed.
|
||||
/// </summary>
|
||||
public DateTimeOffset ClosedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When the pull request was merged.
|
||||
/// </summary>
|
||||
public DateTimeOffset MergedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The HEAD reference for the pull request.
|
||||
/// </summary>
|
||||
public GitReference Head { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The BASE reference for the pull request.
|
||||
/// </summary>
|
||||
public GitReference Base { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The user who created the pull request.
|
||||
/// </summary>
|
||||
public User User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The SHA of the merge commit.
|
||||
/// </summary>
|
||||
public string MergeCommitSha { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the pull request has been merged.
|
||||
/// </summary>
|
||||
public bool Merged { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the pull request can be merged.
|
||||
/// </summary>
|
||||
public bool Mergable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The user who merged the pull request.
|
||||
/// </summary>
|
||||
public User MergedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total number of comments contained in the pull request.
|
||||
/// </summary>
|
||||
public int Comments { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total number of commits contained in the pull request.
|
||||
/// </summary>
|
||||
public int Commits { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total number of additions contained in the pull request.
|
||||
/// </summary>
|
||||
public int Additions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total number of deletions contained in the pull request.
|
||||
/// </summary>
|
||||
public int Deletions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total number of files changed in the pull request.
|
||||
/// </summary>
|
||||
public int ChangedFiles { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user