diff --git a/Octokit.Reactive/Clients/IObservableRepositoryForksClient.cs b/Octokit.Reactive/Clients/IObservableRepositoryForksClient.cs
index ccc58d70..dedcdbe0 100644
--- a/Octokit.Reactive/Clients/IObservableRepositoryForksClient.cs
+++ b/Octokit.Reactive/Clients/IObservableRepositoryForksClient.cs
@@ -21,6 +21,16 @@ namespace Octokit.Reactive
/// A of s representing forks of specified repository.
IObservable GetAll(string owner, string name);
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// A of s representing forks of specified repository.
+ IObservable GetAll(int repositoryId);
+
///
/// Gets the list of forks defined for a repository
///
@@ -33,6 +43,17 @@ namespace Octokit.Reactive
/// A of s representing forks of specified repository.
IObservable GetAll(string owner, string name, ApiOptions options);
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Options for changing the API response
+ /// A of s representing forks of specified repository.
+ IObservable GetAll(int repositoryId, ApiOptions options);
+
///
/// Gets the list of forks defined for a repository
///
@@ -45,6 +66,17 @@ namespace Octokit.Reactive
/// A of s representing forks of specified repository.
IObservable GetAll(string owner, string name, RepositoryForksListRequest request);
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to request and filter a list of repository forks
+ /// A of s representing forks of specified repository.
+ IObservable GetAll(int repositoryId, RepositoryForksListRequest request);
+
///
/// Gets the list of forks defined for a repository
///
@@ -58,6 +90,18 @@ namespace Octokit.Reactive
/// A of s representing forks of specified repository.
IObservable GetAll(string owner, string name, RepositoryForksListRequest request, ApiOptions options);
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to request and filter a list of repository forks
+ /// Options for changing the API response
+ /// A of s representing forks of specified repository.
+ IObservable GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options);
+
///
/// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
///
@@ -69,5 +113,16 @@ namespace Octokit.Reactive
/// Used to fork a repository
/// A of representing the created fork of specified repository.
IObservable Create(string owner, string name, NewRepositoryFork fork);
+
+ ///
+ /// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to fork a repository
+ /// A of representing the created fork of specified repository.
+ IObservable Create(int repositoryId, NewRepositoryFork fork);
}
}
diff --git a/Octokit.Reactive/Clients/ObservableRepositoryForksClient.cs b/Octokit.Reactive/Clients/ObservableRepositoryForksClient.cs
index 25b0b325..76944879 100644
--- a/Octokit.Reactive/Clients/ObservableRepositoryForksClient.cs
+++ b/Octokit.Reactive/Clients/ObservableRepositoryForksClient.cs
@@ -44,6 +44,19 @@ namespace Octokit.Reactive
return GetAll(owner, name, ApiOptions.None);
}
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// A of s representing forks of specified repository.
+ public IObservable GetAll(int repositoryId)
+ {
+ return GetAll(repositoryId, ApiOptions.None);
+ }
+
///
/// Gets the list of forks defined for a repository
///
@@ -63,6 +76,22 @@ namespace Octokit.Reactive
return _connection.GetAndFlattenAllPages(ApiUrls.RepositoryForks(owner, name), options);
}
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Options for changing the API response
+ /// A of s representing forks of specified repository.
+ public IObservable GetAll(int repositoryId, ApiOptions options)
+ {
+ Ensure.ArgumentNotNull(options, "options");
+
+ return _connection.GetAndFlattenAllPages(ApiUrls.RepositoryForks(repositoryId), options);
+ }
+
///
/// Gets the list of forks defined for a repository
///
@@ -81,6 +110,20 @@ namespace Octokit.Reactive
return GetAll(owner, name, request, ApiOptions.None);
}
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to request and filter a list of repository forks
+ /// A of s representing forks of specified repository.
+ public IObservable GetAll(int repositoryId, RepositoryForksListRequest request)
+ {
+ return GetAll(repositoryId, request, ApiOptions.None);
+ }
+
///
/// Gets the list of forks defined for a repository
///
@@ -102,6 +145,24 @@ namespace Octokit.Reactive
_connection.GetAndFlattenAllPages(ApiUrls.RepositoryForks(owner, name), request.ToParametersDictionary(), options);
}
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to request and filter a list of repository forks
+ /// Options for changing the API response
+ /// A of s representing forks of specified repository.
+ public IObservable GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options)
+ {
+ Ensure.ArgumentNotNull(options, "options");
+
+ return request == null ? _connection.GetAndFlattenAllPages(ApiUrls.RepositoryForks(repositoryId), options) :
+ _connection.GetAndFlattenAllPages(ApiUrls.RepositoryForks(repositoryId), request.ToParametersDictionary(), options);
+ }
+
///
/// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
///
@@ -120,5 +181,21 @@ namespace Octokit.Reactive
return _client.Create(owner, name, fork).ToObservable();
}
+
+ ///
+ /// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to fork a repository
+ /// A of representing the created fork of specified repository.
+ public IObservable Create(int repositoryId, NewRepositoryFork fork)
+ {
+ Ensure.ArgumentNotNull(fork, "fork");
+
+ return _client.Create(repositoryId, fork).ToObservable();
+ }
}
}
\ No newline at end of file
diff --git a/Octokit/Clients/IRepositoryForksClient.cs b/Octokit/Clients/IRepositoryForksClient.cs
index 742b38d0..3112e58b 100644
--- a/Octokit/Clients/IRepositoryForksClient.cs
+++ b/Octokit/Clients/IRepositoryForksClient.cs
@@ -22,6 +22,16 @@ namespace Octokit
/// A of s representing forks of specified repository.
Task> GetAll(string owner, string name);
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// A of s representing forks of specified repository.
+ Task> GetAll(int repositoryId);
+
///
/// Gets the list of forks defined for a repository
///
@@ -34,6 +44,17 @@ namespace Octokit
/// A of s representing forks of specified repository.
Task> GetAll(string owner, string name, ApiOptions options);
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Options for changing the API response
+ /// A of s representing forks of specified repository.
+ Task> GetAll(int repositoryId, ApiOptions options);
+
///
/// Gets the list of forks defined for a repository
///
@@ -46,6 +67,17 @@ namespace Octokit
/// A of s representing forks of specified repository.
Task> GetAll(string owner, string name, RepositoryForksListRequest request);
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to request and filter a list of repository forks
+ /// A of s representing forks of specified repository.
+ Task> GetAll(int repositoryId, RepositoryForksListRequest request);
+
///
/// Gets the list of forks defined for a repository
///
@@ -59,6 +91,18 @@ namespace Octokit
/// A of s representing forks of specified repository.
Task> GetAll(string owner, string name, RepositoryForksListRequest request, ApiOptions options);
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to request and filter a list of repository forks
+ /// Options for changing the API response
+ /// A of s representing forks of specified repository.
+ Task> GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options);
+
///
/// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
///
@@ -70,5 +114,16 @@ namespace Octokit
/// Used to fork a repository
/// A representing the created fork of specified repository.
Task Create(string owner, string name, NewRepositoryFork fork);
+
+ ///
+ /// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to fork a repository
+ /// A representing the created fork of specified repository.
+ Task Create(int repositoryId, NewRepositoryFork fork);
}
}
diff --git a/Octokit/Clients/RepositoryForksClient.cs b/Octokit/Clients/RepositoryForksClient.cs
index 0915cde3..3d06a346 100644
--- a/Octokit/Clients/RepositoryForksClient.cs
+++ b/Octokit/Clients/RepositoryForksClient.cs
@@ -37,6 +37,19 @@ namespace Octokit
return GetAll(owner, name, ApiOptions.None);
}
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// A of s representing forks of specified repository.
+ public Task> GetAll(int repositoryId)
+ {
+ return GetAll(repositoryId, ApiOptions.None);
+ }
+
///
/// Gets the list of forks defined for a repository
///
@@ -56,6 +69,22 @@ namespace Octokit
return ApiConnection.GetAll(ApiUrls.RepositoryForks(owner, name), options);
}
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Options for changing the API response
+ /// A of s representing forks of specified repository.
+ public Task> GetAll(int repositoryId, ApiOptions options)
+ {
+ Ensure.ArgumentNotNull(options, "options");
+
+ return ApiConnection.GetAll(ApiUrls.RepositoryForks(repositoryId), options);
+ }
+
///
/// Gets the list of forks defined for a repository
///
@@ -74,6 +103,20 @@ namespace Octokit
return GetAll(owner, name, request, ApiOptions.None);
}
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to request and filter a list of repository forks
+ /// A of s representing forks of specified repository.
+ public Task> GetAll(int repositoryId, RepositoryForksListRequest request)
+ {
+ return GetAll(repositoryId, request, ApiOptions.None);
+ }
+
///
/// Gets the list of forks defined for a repository
///
@@ -96,6 +139,25 @@ namespace Octokit
ApiConnection.GetAll(ApiUrls.RepositoryForks(owner, name), request.ToParametersDictionary(), options);
}
+ ///
+ /// Gets the list of forks defined for a repository
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to request and filter a list of repository forks
+ /// Options for changing the API response
+ /// A of s representing forks of specified repository.
+ public Task> GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options)
+ {
+ Ensure.ArgumentNotNull(options, "options");
+
+ return request == null
+ ? ApiConnection.GetAll(ApiUrls.RepositoryForks(repositoryId), options) :
+ ApiConnection.GetAll(ApiUrls.RepositoryForks(repositoryId), request.ToParametersDictionary(), options);
+ }
+
///
/// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
///
@@ -114,5 +176,21 @@ namespace Octokit
return ApiConnection.Post(ApiUrls.RepositoryForks(owner, name), fork);
}
+
+ ///
+ /// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
+ ///
+ ///
+ /// See API documentation for more information.
+ ///
+ /// The ID of the repository
+ /// Used to fork a repository
+ /// A representing the created fork of specified repository.
+ public Task Create(int repositoryId, NewRepositoryFork fork)
+ {
+ Ensure.ArgumentNotNull(fork, "fork");
+
+ return ApiConnection.Post(ApiUrls.RepositoryForks(repositoryId), fork);
+ }
}
}