mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 22:55:12 +00:00
Added PreviousFileName property to GitHubCommitFile. This property is returned from the GitHub API when a file was modified. Check https://api.github.com/repos/octokit/octokit.net/commits/997e955f for an example of returning a commit containing file renames.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Octokit
|
||||
public GitHubCommitFile() { }
|
||||
|
||||
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
|
||||
public GitHubCommitFile(string filename, int additions, int deletions, int changes, string status, string blobUrl, string contentsUrl, string rawUrl, string sha, string patch)
|
||||
public GitHubCommitFile(string filename, int additions, int deletions, int changes, string status, string blobUrl, string contentsUrl, string rawUrl, string sha, string patch, string previousFileName)
|
||||
{
|
||||
Filename = filename;
|
||||
Additions = additions;
|
||||
@@ -26,6 +26,7 @@ namespace Octokit
|
||||
RawUrl = rawUrl;
|
||||
Sha = sha;
|
||||
Patch = patch;
|
||||
PreviousFileName = previousFileName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -79,6 +80,11 @@ namespace Octokit
|
||||
/// </summary>
|
||||
public string Patch { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The previous filename for a renamed file.
|
||||
/// </summary>
|
||||
public string PreviousFileName { get; protected set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get { return String.Format(CultureInfo.InvariantCulture, "Filename: {0} ({1})", Filename, Status); }
|
||||
|
||||
Reference in New Issue
Block a user