mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
Make Repository Id a long, it's going to grow...
This commit is contained in:
@@ -89,7 +89,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <remarks>Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.</remarks>
|
||||
/// <returns>An <see cref="IObservable{Unit}"/> for the operation</returns>
|
||||
public IObservable<Unit> Delete(int repositoryId)
|
||||
public IObservable<Unit> Delete(long repositoryId)
|
||||
{
|
||||
return _client.Delete(repositoryId).ToObservable();
|
||||
}
|
||||
@@ -113,7 +113,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <returns>A <see cref="Repository"/></returns>
|
||||
public IObservable<Repository> Get(int repositoryId)
|
||||
public IObservable<Repository> Get(long repositoryId)
|
||||
{
|
||||
return _client.Get(repositoryId).ToObservable();
|
||||
}
|
||||
@@ -350,7 +350,7 @@ namespace Octokit.Reactive
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>All <see cref="T:Octokit.Branch"/>es of the repository</returns>
|
||||
[Obsolete("Please use ObservableRepositoriesClient.Branch.GetAll() instead. This method will be removed in a future version")]
|
||||
public IObservable<Branch> GetAllBranches(int repositoryId)
|
||||
public IObservable<Branch> GetAllBranches(long repositoryId)
|
||||
{
|
||||
return Branch.GetAll(repositoryId, ApiOptions.None);
|
||||
}
|
||||
@@ -387,7 +387,7 @@ namespace Octokit.Reactive
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>All <see cref="T:Octokit.Branch"/>es of the repository</returns>
|
||||
[Obsolete("Please use ObservableRepositoriesClient.Branch.GetAll() instead. This method will be removed in a future version")]
|
||||
public IObservable<Branch> GetAllBranches(int repositoryId, ApiOptions options)
|
||||
public IObservable<Branch> GetAllBranches(long repositoryId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, "options");
|
||||
|
||||
@@ -419,7 +419,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <returns>All contributors of the repository.</returns>
|
||||
public IObservable<RepositoryContributor> GetAllContributors(int repositoryId)
|
||||
public IObservable<RepositoryContributor> GetAllContributors(long repositoryId)
|
||||
{
|
||||
return GetAllContributors(repositoryId, ApiOptions.None);
|
||||
}
|
||||
@@ -452,7 +452,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns>All contributors of the repository.</returns>
|
||||
public IObservable<RepositoryContributor> GetAllContributors(int repositoryId, ApiOptions options)
|
||||
public IObservable<RepositoryContributor> GetAllContributors(long repositoryId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, "options");
|
||||
|
||||
@@ -486,7 +486,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="includeAnonymous">True if anonymous contributors should be included in result; Otherwise false</param>
|
||||
/// <returns>All contributors of the repository.</returns>
|
||||
public IObservable<RepositoryContributor> GetAllContributors(int repositoryId, bool includeAnonymous)
|
||||
public IObservable<RepositoryContributor> GetAllContributors(long repositoryId, bool includeAnonymous)
|
||||
{
|
||||
return GetAllContributors(repositoryId, includeAnonymous, ApiOptions.None);
|
||||
}
|
||||
@@ -526,7 +526,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="includeAnonymous">True if anonymous contributors should be included in result; Otherwise false</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns>All contributors of the repository.</returns>
|
||||
public IObservable<RepositoryContributor> GetAllContributors(int repositoryId, bool includeAnonymous, ApiOptions options)
|
||||
public IObservable<RepositoryContributor> GetAllContributors(long repositoryId, bool includeAnonymous, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, "options");
|
||||
|
||||
@@ -566,7 +566,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <returns>All languages used in the repository and the number of bytes of each language.</returns>
|
||||
public IObservable<RepositoryLanguage> GetAllLanguages(int repositoryId)
|
||||
public IObservable<RepositoryLanguage> GetAllLanguages(long repositoryId)
|
||||
{
|
||||
var endpoint = ApiUrls.RepositoryLanguages(repositoryId);
|
||||
return _connection
|
||||
@@ -599,7 +599,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <returns>All <see cref="T:Octokit.Team"/>s associated with the repository</returns>
|
||||
public IObservable<Team> GetAllTeams(int repositoryId)
|
||||
public IObservable<Team> GetAllTeams(long repositoryId)
|
||||
{
|
||||
return GetAllTeams(repositoryId, ApiOptions.None);
|
||||
}
|
||||
@@ -632,7 +632,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns>All <see cref="T:Octokit.Team"/>s associated with the repository</returns>
|
||||
public IObservable<Team> GetAllTeams(int repositoryId, ApiOptions options)
|
||||
public IObservable<Team> GetAllTeams(long repositoryId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, "options");
|
||||
|
||||
@@ -664,7 +664,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <returns>All of the repositories tags.</returns>
|
||||
public IObservable<RepositoryTag> GetAllTags(int repositoryId)
|
||||
public IObservable<RepositoryTag> GetAllTags(long repositoryId)
|
||||
{
|
||||
return GetAllTags(repositoryId, ApiOptions.None);
|
||||
}
|
||||
@@ -697,7 +697,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns>All of the repositories tags.</returns>
|
||||
public IObservable<RepositoryTag> GetAllTags(int repositoryId, ApiOptions options)
|
||||
public IObservable<RepositoryTag> GetAllTags(long repositoryId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, "options");
|
||||
|
||||
@@ -734,7 +734,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="branchName">The name of the branch</param>
|
||||
/// <returns>The specified <see cref="T:Octokit.Branch"/></returns>
|
||||
[Obsolete("Please use ObservableRepositoriesClient.Branch.Get() instead. This method will be removed in a future version")]
|
||||
public IObservable<Branch> GetBranch(int repositoryId, string branchName)
|
||||
public IObservable<Branch> GetBranch(long repositoryId, string branchName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(branchName, "branchName");
|
||||
|
||||
@@ -763,7 +763,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="update">New values to update the repository with</param>
|
||||
/// <returns>The updated <see cref="T:Octokit.Repository"/></returns>
|
||||
public IObservable<Repository> Edit(int repositoryId, RepositoryUpdate update)
|
||||
public IObservable<Repository> Edit(long repositoryId, RepositoryUpdate update)
|
||||
{
|
||||
Ensure.ArgumentNotNull(update, "update");
|
||||
|
||||
@@ -797,7 +797,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="update">New values to update the branch with</param>
|
||||
/// <returns>The updated <see cref="T:Octokit.Branch"/></returns>
|
||||
[Obsolete("This existing implementation will cease to work when the Branch Protection API preview period ends. Please use the ObservableRepositoryBranchesClient methods instead.")]
|
||||
public IObservable<Branch> EditBranch(int repositoryId, string branch, BranchUpdate update)
|
||||
public IObservable<Branch> EditBranch(long repositoryId, string branch, BranchUpdate update)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(branch, "branch");
|
||||
Ensure.ArgumentNotNull(update, "update");
|
||||
|
||||
Reference in New Issue
Block a user