-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include files array in the github commit.
Fixes #607.
- Loading branch information
Showing
9 changed files
with
85 additions
and
1 deletion.
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
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
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
using System; | ||
using System.Diagnostics; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Globalization; | ||
|
||
namespace Octokit | ||
{ | ||
/// <summary> | ||
/// The affected files in a <see cref="GitHubCommit"/>. | ||
/// </summary> | ||
[DebuggerDisplay("{DebuggerDisplay,nq}")] | ||
public class GitHubCommitFile | ||
{ | ||
/// <summary> | ||
/// The name of the file | ||
/// </summary> | ||
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")] | ||
public string Filename { get; set; } | ||
|
||
/// <summary> | ||
/// Number of additions performed on the file. | ||
/// </summary> | ||
public int Additions { get; set; } | ||
|
||
/// <summary> | ||
/// Number of deletions performed on the file. | ||
/// </summary> | ||
public int Deletions { get; set; } | ||
|
||
/// <summary> | ||
/// Number of changes performed on the file. | ||
/// </summary> | ||
public int Changes { get; set; } | ||
|
||
/// <summary> | ||
/// File status, like modified, added, deleted. | ||
/// </summary> | ||
public string Status { get; set; } | ||
|
||
/// <summary> | ||
/// The url to the file blob. | ||
/// </summary> | ||
public string BlobUrl { get; set; } | ||
|
||
/// <summary> | ||
/// The url to file contents API. | ||
/// </summary> | ||
public string ContentsUrl { get; set; } | ||
|
||
/// <summary> | ||
/// The raw url to download the file. | ||
/// </summary> | ||
public string RawUrl { get; set; } | ||
|
||
/// <summary> | ||
/// The SHA of the file. | ||
/// </summary> | ||
public string Sha { get; set; } | ||
|
||
internal string DebuggerDisplay | ||
{ | ||
get | ||
{ | ||
return String.Format(CultureInfo.InvariantCulture, "Filename: {0} ({1})", Filename, Status); | ||
} | ||
} | ||
} | ||
} |
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
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
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
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
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
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