diff --git a/Octokit.Reactive/Clients/IObservableRepositoryPagesClient.cs b/Octokit.Reactive/Clients/IObservableRepositoryPagesClient.cs
index 8b9c19ad..9b135efe 100644
--- a/Octokit.Reactive/Clients/IObservableRepositoryPagesClient.cs
+++ b/Octokit.Reactive/Clients/IObservableRepositoryPagesClient.cs
@@ -90,5 +90,24 @@ namespace Octokit.Reactive
/// See the API documentation for more information.
///
IObservable GetLatest(int repositoryId);
+
+ ///
+ /// Requests your site be built from the latest revision on the default branch for a given repository
+ ///
+ /// The owner of the repository
+ /// The name of the repository
+ ///
+ /// See the API documentation for more information.
+ ///
+ IObservable RequestPageBuild(string owner, string name);
+
+ ///
+ /// Requests your site be built from the latest revision on the default branch for a given repository
+ ///
+ /// The ID of the repository
+ ///
+ /// See the API documentation for more information.
+ ///
+ IObservable RequestPageBuild(int repositoryId);
}
}
diff --git a/Octokit.Reactive/Clients/ObservableRepositoryPagesClient.cs b/Octokit.Reactive/Clients/ObservableRepositoryPagesClient.cs
index 1c61be78..8fd6cca0 100644
--- a/Octokit.Reactive/Clients/ObservableRepositoryPagesClient.cs
+++ b/Octokit.Reactive/Clients/ObservableRepositoryPagesClient.cs
@@ -141,5 +141,33 @@ namespace Octokit.Reactive
{
return _client.GetLatest(repositoryId).ToObservable();
}
+
+ ///
+ /// Requests your site be built from the latest revision on the default branch for a given repository
+ ///
+ /// The owner of the repository
+ /// The name of the repository
+ ///
+ /// See the API documentation for more information.
+ ///
+ public IObservable RequestPageBuild(string owner, string name)
+ {
+ Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
+ Ensure.ArgumentNotNullOrEmptyString(name, "name");
+
+ return _client.RequestPageBuild(owner, name).ToObservable();
+ }
+
+ ///
+ /// Requests your site be built from the latest revision on the default branch for a given repository
+ ///
+ /// The ID of the repository
+ ///
+ /// See the API documentation for more information.
+ ///
+ public IObservable RequestPageBuild(int repositoryId)
+ {
+ return _client.RequestPageBuild(repositoryId).ToObservable();
+ }
}
}
diff --git a/Octokit/Clients/IRepositoryPagesClient.cs b/Octokit/Clients/IRepositoryPagesClient.cs
index 56747d9d..3db7fc25 100644
--- a/Octokit/Clients/IRepositoryPagesClient.cs
+++ b/Octokit/Clients/IRepositoryPagesClient.cs
@@ -91,5 +91,24 @@ namespace Octokit
/// See the API documentation for more information.
///
Task GetLatest(int repositoryId);
+
+ ///
+ /// Requests your site be built from the latest revision on the default branch for a given repository
+ ///
+ /// The owner of the repository
+ /// The name of the repository
+ ///
+ /// See the API documentation for more information.
+ ///
+ Task RequestPageBuild(string owner, string name);
+
+ ///
+ /// Requests your site be built from the latest revision on the default branch for a given repository
+ ///
+ /// The ID of the repository
+ ///
+ /// See the API documentation for more information.
+ ///
+ Task RequestPageBuild(int repositoryId);
}
}
diff --git a/Octokit/Clients/RepositoryPagesClient.cs b/Octokit/Clients/RepositoryPagesClient.cs
index af3ff7c7..007d682d 100644
--- a/Octokit/Clients/RepositoryPagesClient.cs
+++ b/Octokit/Clients/RepositoryPagesClient.cs
@@ -137,5 +137,33 @@ namespace Octokit
{
return ApiConnection.Get(ApiUrls.RepositoryPageBuildsLatest(repositoryId));
}
+
+ ///
+ /// Requests your site be built from the latest revision on the default branch for a given repository
+ ///
+ /// The owner of the repository
+ /// The name of the repository
+ ///
+ /// See the API documentation for more information.
+ ///
+ public Task RequestPageBuild(string owner, string name)
+ {
+ Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
+ Ensure.ArgumentNotNullOrEmptyString(name, "name");
+
+ return ApiConnection.Post(ApiUrls.RepositoryPageBuilds(owner, name));
+ }
+
+ ///
+ /// Requests your site be built from the latest revision on the default branch for a given repository
+ ///
+ /// The ID of the repository
+ ///
+ /// See the API documentation for more information.
+ ///
+ public Task RequestPageBuild(int repositoryId)
+ {
+ return ApiConnection.Post(ApiUrls.RepositoryPageBuilds(repositoryId));
+ }
}
}