implement get repository commit

implementation for getting a single repository commit.  Includes
implementation, unit tests and xml docs
This commit is contained in:
Timothy Haagenson
2014-07-09 10:35:37 -05:00
parent a72e39f98b
commit 3f18b667bc
7 changed files with 105 additions and 0 deletions
@@ -17,6 +17,17 @@ namespace Octokit
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "base")]
Task<CompareResult> Compare(string owner, string name, string @base, string head);
/// <summary>
/// Gets a single commit for a given repository
/// </summary>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="reference">The reference for the commit (SHA)</param>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Makes a network request")]
Task<GitHubCommit> Get(string owner, string name, string reference);
/// <summary>
/// Gets all commits for a given repository
/// </summary>