diff --git a/Octokit.Reactive/Clients/IObservableDeploymentsClient.cs b/Octokit.Reactive/Clients/IObservableDeploymentsClient.cs
index 3a77e846..23fbee4a 100644
--- a/Octokit.Reactive/Clients/IObservableDeploymentsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableDeploymentsClient.cs
@@ -16,6 +16,19 @@ namespace Octokit.Reactive
/// All the s for the specified repository.
IObservable GetAll(string owner, string name);
+ ///
+ /// Gets all the deployments for the specified repository. Any user with pull access
+ /// to a repository can view deployments.
+ ///
+ ///
+ /// http://developer.github.com/v3/repos/deployments/#list-deployments
+ ///
+ /// The owner of the repository
+ /// The name of the repository
+ /// Options for changing the API response
+ /// All the s for the specified repository.
+ IObservable GetAll(string owner, string name, ApiOptions options);
+
///
/// Creates a new deployment for the specified repository.
/// Users with push access can create a deployment for a given ref.
diff --git a/Octokit.Reactive/Clients/ObservableDeploymentsClient.cs b/Octokit.Reactive/Clients/ObservableDeploymentsClient.cs
index 3d2ab9f1..1851b719 100644
--- a/Octokit.Reactive/Clients/ObservableDeploymentsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableDeploymentsClient.cs
@@ -38,6 +38,27 @@ namespace Octokit.Reactive.Clients
ApiUrls.Deployments(owner, name));
}
+ ///
+ /// Gets all the deployments for the specified repository. Any user with pull access
+ /// to a repository can view deployments.
+ ///
+ ///
+ /// http://developer.github.com/v3/repos/deployments/#list-deployments
+ ///
+ /// The owner of the repository
+ /// The name of the repository
+ /// Options for changing the API response
+ /// All the s for the specified repository.
+ public IObservable GetAll(string owner, string name, ApiOptions options)
+ {
+ Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
+ Ensure.ArgumentNotNullOrEmptyString(name, "name");
+ Ensure.ArgumentNotNull(options, "options");
+
+ return _connection.GetAndFlattenAllPages(
+ ApiUrls.Deployments(owner, name), options);
+ }
+
///
/// Creates a new deployment for the specified repository.
/// Users with push access can create a deployment for a given ref.