diff --git a/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs b/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs index 7ba8c055c2..f587e23557 100644 --- a/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs +++ b/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs @@ -260,6 +260,16 @@ public interface IObservableRepositoriesClient /// 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 9e7ac33c7d..7098561368 100644 --- a/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs +++ b/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs @@ -380,6 +380,19 @@ public IObservable Edit(string owner, string name, RepositoryUpdate 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 + IObservable EditBranch(string owner, string name, string branch, BranchUpdate update) + { + return _client.EditBranch(owner, name, branch, update).ToObservable(); + } + /// /// Compare two references in a repository ///