mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-18 21:25:12 +00:00
[BREAKING CHANGES]: int to long Ids for PreReceiveHook, Deployment Environments, Repository, Org Team, Repo Invitations, Public Key, Project Cards, Organization Invitation, Migrations, GpgKey, Deployment, Authorizations, Accounts / Profiles, Codespace / Workspaces (#2941)
* Fixes ids for Releases, Collaborators, and Contributors * updates the interface for releases * update the obverable release client * updates ids from int to long based on GH database schema * converts a test condition to use the proper type * updates generated paging and observable classes
This commit is contained in:
@@ -11,18 +11,18 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Accept(int invitationId);
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Accept(long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Decline a repository invitation.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Decline(int invitationId);
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Decline(long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a repository invitation.
|
||||
@@ -31,15 +31,15 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Delete(long repositoryId, int invitationId);
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Delete(long repositoryId, long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all invitations for the current user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
||||
IObservable<RepositoryInvitation> GetAllForCurrent();
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
||||
IObservable<RepositoryInvitation> GetAllForCurrent(ApiOptions options);
|
||||
|
||||
@@ -58,8 +58,8 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
IObservable<RepositoryInvitation> GetAllForRepository(long repositoryId);
|
||||
|
||||
/// <summary>
|
||||
@@ -67,9 +67,9 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// /// <param name="options">Options for changing the API response</param>
|
||||
/// /// <param name="options">Options for changing the API response</param>
|
||||
IObservable<RepositoryInvitation> GetAllForRepository(long repositoryId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
@@ -79,9 +79,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
/// <param name="permissions">The permission to set.</param>
|
||||
/// <returns><see cref="RepositoryInvitation"/></returns>
|
||||
IObservable<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions);
|
||||
IObservable<RepositoryInvitation> Edit(long repositoryId, long invitationId, InvitationUpdate permissions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user