using System; using System.Diagnostics.CodeAnalysis; namespace Octokit.Reactive { /// /// A client for GitHub's Git Commits API. /// /// /// See the Git Commits API documentation for more information. /// public interface IObservableCommitsClient { /// /// Gets a commit for a given repository by sha reference /// /// /// http://developer.github.com/v3/git/commits/#get-a-commit /// /// The owner of the repository /// The name of the repository /// Tha sha reference of the commit /// A representing commit for specified repository and reference [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] IObservable Get(string owner, string name, string reference); /// /// Create a commit for a given repository /// /// /// http://developer.github.com/v3/git/commits/#create-a-commit /// /// The owner of the repository /// The name of the repository /// The commit to create /// A of representing created commit for specified repository IObservable Create(string owner, string name, NewCommit commit); } }