mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 21:09:51 +00:00
Merge branch 'gists' of https://github.com/haagenson/octokit.net into haagenson-gists
Conflicts: Octokit/Helpers/ApiUrls.cs Octokit/Models/Response/GistFork.cs Octokit/Models/Response/GistHistory.cs
This commit is contained in:
@@ -180,6 +180,34 @@ namespace Octokit.Reactive
|
||||
return _connection.GetAndFlattenAllPages<Gist>(ApiUrls.UsersGists(user), request.ToParametersDictionary());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List gist commits
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists-commits
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the gist</param>
|
||||
public IObservable<GistHistory> GetAllCommits(string id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(id, "id");
|
||||
|
||||
return _connection.GetAndFlattenAllPages<GistHistory>(ApiUrls.GistCommits(id));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List gist forks
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/gists/#list-gists-forks
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the gist</param>
|
||||
public IObservable<GistFork> GetAllForks(string id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(id, "id");
|
||||
|
||||
return _connection.GetAndFlattenAllPages<GistFork>(ApiUrls.ForkGist(id));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Edits a gist
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user