mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 16:42:03 +00:00
23b25f5922
* add node_id to Deployments payloads (Deployment and DeploymentStatus and Account/User/Organization) * add node_id to gist responses * add node_id to Git Blob * add node_id to Git Commit response * add node_id to GitReference response * add node_id to everything that inherits GitReference * add node_id to Issue * add node_id to IssueComment/IssueEvent * add node_id to Label * add node_id to Milestone * add node_id to Project/ProjectCard/ProjectColumn * add node_id to Reaction * add node_id to Release/ReleaseAsset * add node_id to Team * add node_id to Repository.RepositoryContributor/RepositoryInvitation/RepositoryTag * add node_id to Commit related responses * Add node_id to PullRequest related responses * Add node_id to any response models it was found to be missing, based on auditing integration test responses * remove unused test variable that was using a response ctor * fix tests that need to handle node_id now * Committer is a request object as well as response, so make nodeId optional * fix test
54 lines
2.1 KiB
C#
54 lines
2.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// An enhanced git commit containing links to additional resources
|
|
/// </summary>
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class GitHubCommit : GitReference
|
|
{
|
|
public GitHubCommit() { }
|
|
|
|
public GitHubCommit(string nodeId, 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<GitReference> parents, IReadOnlyList<GitHubCommitFile> files)
|
|
: base(nodeId, url, label, @ref, sha, user, repository)
|
|
{
|
|
Author = author;
|
|
CommentsUrl = commentsUrl;
|
|
Commit = commit;
|
|
Committer = committer;
|
|
HtmlUrl = htmlUrl;
|
|
Stats = stats;
|
|
Parents = parents;
|
|
Files = files;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the GitHub account information for the commit author. It attempts to match the email
|
|
/// address used in the commit with the email addresses registered with the GitHub account.
|
|
/// If no account corresponds to the commit email, then this property is null.
|
|
/// </summary>
|
|
public Author Author { get; protected set; }
|
|
|
|
public string CommentsUrl { get; protected set; }
|
|
|
|
public Commit Commit { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Gets the GitHub account information for the commit committer. It attempts to match the email
|
|
/// address used in the commit with the email addresses registered with the GitHub account.
|
|
/// If no account corresponds to the commit email, then this property is null.
|
|
/// </summary>
|
|
public Author Committer { get; protected set; }
|
|
|
|
public string HtmlUrl { get; protected set; }
|
|
|
|
public GitHubCommitStats Stats { get; protected set; }
|
|
|
|
public IReadOnlyList<GitReference> Parents { get; protected set; }
|
|
|
|
public IReadOnlyList<GitHubCommitFile> Files { get; protected set; }
|
|
}
|
|
}
|