diff --git a/Octokit/Clients/IRepositoriesClient.cs b/Octokit/Clients/IRepositoriesClient.cs
index 627b8cbb..2080e6a0 100644
--- a/Octokit/Clients/IRepositoriesClient.cs
+++ b/Octokit/Clients/IRepositoriesClient.cs
@@ -94,6 +94,20 @@ namespace Octokit
/// A
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
Task Get(string owner, string name);
+
+ ///
+ /// Gets all public repositories.
+ ///
+ ///
+ /// See the API documentation for more information.
+ /// The default page size on GitHub.com is 30.
+ ///
+ /// Thrown if the client is not authenticated.
+ /// Thrown when a general API error occurs.
+ /// A of .
+ [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
+ Justification = "Makes a network request")]
+ Task> GetAllPublic();
///
/// Gets all repositories owned by the current user.
diff --git a/Octokit/Clients/RepositoriesClient.cs b/Octokit/Clients/RepositoriesClient.cs
index 5116c37b..cc118d48 100644
--- a/Octokit/Clients/RepositoriesClient.cs
+++ b/Octokit/Clients/RepositoriesClient.cs
@@ -174,6 +174,21 @@ namespace Octokit
return ApiConnection.Get(endpoint);
}
+ ///
+ /// Gets all public repositories.
+ ///
+ ///
+ /// See the API documentation for more information.
+ /// The default page size on GitHub.com is 30.
+ ///
+ /// Thrown if the client is not authenticated.
+ /// Thrown when a general API error occurs.
+ /// A of .
+ public Task> GetAllPublic()
+ {
+ return ApiConnection.GetAll(ApiUrls.AllPublicRepositories());
+ }
+
///
/// Gets all repositories owned by the current user.
///