diff --git a/Octokit/Models/Response/CommitEntity.cs b/Octokit/Models/Response/CommitEntity.cs new file mode 100644 index 00000000..a634f1bf --- /dev/null +++ b/Octokit/Models/Response/CommitEntity.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Octokit +{ + /// + /// Information about a file in a repository. It does not include the contents of the file. + /// + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public class CommitEntity + { + /// + /// Name of the user + /// + public string Name { get; set; } + + /// + /// Email of the user + /// + public string Email { get; set; } + + /// + /// Time the commit happened + /// + public DateTime Date { get; set; } + } +} \ No newline at end of file diff --git a/Octokit/Models/Response/GitHubCommit.cs b/Octokit/Models/Response/GitHubCommit.cs index 3f3c679d..55625275 100644 --- a/Octokit/Models/Response/GitHubCommit.cs +++ b/Octokit/Models/Response/GitHubCommit.cs @@ -11,7 +11,7 @@ namespace Octokit { public GitHubCommit() { } - public GitHubCommit(string url, string label, string @ref, string sha, User user, Repository repository, Author author, string commentsUrl, Commit commit, Author committer, string htmlUrl, GitHubCommitStats stats, IReadOnlyList parents, IReadOnlyList files) + public GitHubCommit(string url, string label, string @ref, string sha, User user, Repository repository, CommitEntity author, string commentsUrl, Commit commit, CommitEntity committer, string htmlUrl, GitHubCommitStats stats, IReadOnlyList parents, IReadOnlyList files) : base(url, label, @ref, sha, user, repository) { Author = author; @@ -24,13 +24,13 @@ namespace Octokit Files = files; } - public Author Author { get; protected set; } + public CommitEntity Author { get; protected set; } public string CommentsUrl { get; protected set; } public Commit Commit { get; protected set; } - public Author Committer { get; protected set; } + public CommitEntity Committer { get; protected set; } public string HtmlUrl { get; protected set; } diff --git a/Octokit/Octokit-Mono.csproj b/Octokit/Octokit-Mono.csproj index 3961d74f..8b2387cd 100644 --- a/Octokit/Octokit-Mono.csproj +++ b/Octokit/Octokit-Mono.csproj @@ -403,6 +403,7 @@ + \ No newline at end of file diff --git a/Octokit/Octokit-MonoAndroid.csproj b/Octokit/Octokit-MonoAndroid.csproj index 07304a96..32a51ff5 100644 --- a/Octokit/Octokit-MonoAndroid.csproj +++ b/Octokit/Octokit-MonoAndroid.csproj @@ -411,6 +411,7 @@ + \ No newline at end of file diff --git a/Octokit/Octokit-Monotouch.csproj b/Octokit/Octokit-Monotouch.csproj index caaeb90c..2c630ce9 100644 --- a/Octokit/Octokit-Monotouch.csproj +++ b/Octokit/Octokit-Monotouch.csproj @@ -407,6 +407,7 @@ + diff --git a/Octokit/Octokit-Portable.csproj b/Octokit/Octokit-Portable.csproj index b25ddd45..84c3a97f 100644 --- a/Octokit/Octokit-Portable.csproj +++ b/Octokit/Octokit-Portable.csproj @@ -400,6 +400,7 @@ + diff --git a/Octokit/Octokit-netcore45.csproj b/Octokit/Octokit-netcore45.csproj index ec20803e..b9af9386 100644 --- a/Octokit/Octokit-netcore45.csproj +++ b/Octokit/Octokit-netcore45.csproj @@ -404,6 +404,7 @@ + diff --git a/Octokit/Octokit.csproj b/Octokit/Octokit.csproj index 58be85ed..c282bbd3 100644 --- a/Octokit/Octokit.csproj +++ b/Octokit/Octokit.csproj @@ -111,6 +111,7 @@ +