From 7033108634555083e4d82e3035cfbc6a10b2ef17 Mon Sep 17 00:00:00 2001 From: Ryan Gribble Date: Sun, 13 Dec 2015 23:11:43 +1000 Subject: [PATCH] Add EditBranch() to Octokit.Reactive --- .../Clients/IObservableRepositoriesClient.cs | 10 ++++++++++ .../Clients/ObservableRepositoriesClient.cs | 13 +++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs b/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs index 7ba8c055..f587e235 100644 --- a/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs +++ b/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs @@ -260,6 +260,16 @@ namespace Octokit.Reactive /// The updated IObservable Edit(string owner, string name, RepositoryUpdate update); + /// + /// Edit the specified branch with the values given in + /// + /// The owner of the repository + /// The name of the repository + /// The name of the branch + /// New values to update the branch with + /// The updated + IObservable EditBranch(string owner, string name, string branch, BranchUpdate update); + /// /// A client for GitHub's Repo Collaborators. /// diff --git a/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs b/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs index 9e7ac33c..9d0bb128 100644 --- a/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs +++ b/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs @@ -380,6 +380,19 @@ namespace Octokit.Reactive return _client.Edit(owner, name, update).ToObservable(); } + /// + /// Edit the specified branch with the values given in + /// + /// The owner of the repository + /// The name of the repository + /// The name of the branch + /// New values to update the branch with + /// The updated + public IObservable EditBranch(string owner, string name, string branch, BranchUpdate update) + { + return _client.EditBranch(owner, name, branch, update).ToObservable(); + } + /// /// Compare two references in a repository ///