Make Repository Id a long, it's going to grow...

This commit is contained in:
Andreia Gaita
2016-06-23 17:07:03 +02:00
parent 58833602b7
commit 9e958bf998
169 changed files with 1041 additions and 1037 deletions

View File

@@ -21,7 +21,7 @@ namespace Octokit.Reactive
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<User> GetAllForRepository(int repositoryId); IObservable<User> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
@@ -36,7 +36,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="options">The options to change API's behaviour.</param> /// <param name="options">The options to change API's behaviour.</param>
IObservable<User> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<User> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Checks to see if a user is an assignee for a repository. /// Checks to see if a user is an assignee for a repository.
@@ -51,6 +51,6 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="assignee">Username of the prospective assignee</param> /// <param name="assignee">Username of the prospective assignee</param>
IObservable<bool> CheckAssignee(int repositoryId, string assignee); IObservable<bool> CheckAssignee(long repositoryId, string assignee);
} }
} }

View File

@@ -31,7 +31,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The SHA of the blob</param> /// <param name="reference">The SHA of the blob</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
IObservable<Blob> Get(int repositoryId, string reference); IObservable<Blob> Get(long repositoryId, string reference);
/// <summary> /// <summary>
/// Creates a new Blob /// Creates a new Blob
@@ -52,6 +52,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newBlob">The new Blob</param> /// <param name="newBlob">The new Blob</param>
IObservable<BlobReference> Create(int repositoryId, NewBlob newBlob); IObservable<BlobReference> Create(long repositoryId, NewBlob newBlob);
} }
} }

View File

@@ -29,7 +29,7 @@ namespace Octokit.Reactive
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create </param> /// <param name="reaction">The reaction to create </param>
/// <returns></returns> /// <returns></returns>
IObservable<Reaction> Create(int repositoryId, int number, NewReaction reaction); IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction);
/// <summary> /// <summary>
/// List reactions for a specified Commit Comment /// List reactions for a specified Commit Comment
@@ -48,6 +48,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The owner of the repository</param> /// <param name="repositoryId">The owner of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <returns></returns> /// <returns></returns>
IObservable<Reaction> GetAll(int repositoryId, int number); IObservable<Reaction> GetAll(long repositoryId, int number);
} }
} }

View File

@@ -27,7 +27,7 @@ namespace Octokit.Reactive
/// <remarks>Only users with pull access can see this.</remarks> /// <remarks>Only users with pull access can see this.</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
IObservable<CommitStatus> GetAll(int repositoryId, string reference); IObservable<CommitStatus> GetAll(long repositoryId, string reference);
/// <summary> /// <summary>
/// Retrieves commit statuses for the specified reference. A reference can be a commit SHA, a branch name, or /// Retrieves commit statuses for the specified reference. A reference can be a commit SHA, a branch name, or
@@ -48,7 +48,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<CommitStatus> GetAll(int repositoryId, string reference, ApiOptions options); IObservable<CommitStatus> GetAll(long repositoryId, string reference, ApiOptions options);
/// <summary> /// <summary>
/// Retrieves a combined view of statuses for the specified reference. A reference can be a commit SHA, a branch name, or /// Retrieves a combined view of statuses for the specified reference. A reference can be a commit SHA, a branch name, or
@@ -67,7 +67,7 @@ namespace Octokit.Reactive
/// <remarks>Only users with pull access can see this.</remarks> /// <remarks>Only users with pull access can see this.</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
IObservable<CombinedCommitStatus> GetCombined(int repositoryId, string reference); IObservable<CombinedCommitStatus> GetCombined(long repositoryId, string reference);
/// <summary> /// <summary>
/// Creates a commit status for the specified ref. /// Creates a commit status for the specified ref.
@@ -84,6 +84,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
/// <param name="newCommitStatus">The commit status to create</param> /// <param name="newCommitStatus">The commit status to create</param>
IObservable<CommitStatus> Create(int repositoryId, string reference, NewCommitStatus newCommitStatus); IObservable<CommitStatus> Create(long repositoryId, string reference, NewCommitStatus newCommitStatus);
} }
} }

View File

@@ -34,7 +34,7 @@ namespace Octokit.Reactive
/// <param name="reference">Tha sha reference of the commit</param> /// <param name="reference">Tha sha reference of the commit</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<Commit> Get(int repositoryId, string reference); IObservable<Commit> Get(long repositoryId, string reference);
/// <summary> /// <summary>
/// Create a commit for a given repository /// Create a commit for a given repository
@@ -55,6 +55,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="commit">The commit to create</param> /// <param name="commit">The commit to create</param>
IObservable<Commit> Create(int repositoryId, NewCommit commit); IObservable<Commit> Create(long repositoryId, NewCommit commit);
} }
} }

View File

@@ -32,7 +32,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
IObservable<DeploymentStatus> GetAll(int repositoryId, int deploymentId); IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId);
/// <summary> /// <summary>
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can /// Gets all the statuses for the given deployment. Any user with pull access to a repository can
@@ -57,7 +57,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<DeploymentStatus> GetAll(int repositoryId, int deploymentId, ApiOptions options); IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId, ApiOptions options);
/// <summary> /// <summary>
/// Creates a new status for the given deployment. Users with push access can create deployment /// Creates a new status for the given deployment. Users with push access can create deployment
@@ -82,6 +82,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
/// <param name="newDeploymentStatus">The new deployment status to create.</param> /// <param name="newDeploymentStatus">The new deployment status to create.</param>
IObservable<DeploymentStatus> Create(int repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus); IObservable<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus);
} }
} }

View File

@@ -30,7 +30,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/repos/deployments/#list-deployments /// http://developer.github.com/v3/repos/deployments/#list-deployments
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<Deployment> GetAll(int repositoryId); IObservable<Deployment> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets all the deployments for the specified repository. Any user with pull access /// Gets all the deployments for the specified repository. Any user with pull access
@@ -53,7 +53,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<Deployment> GetAll(int repositoryId, ApiOptions options); IObservable<Deployment> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Creates a new deployment for the specified repository. /// Creates a new deployment for the specified repository.
@@ -76,7 +76,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newDeployment">A <see cref="NewDeployment"/> instance describing the new deployment to create</param> /// <param name="newDeployment">A <see cref="NewDeployment"/> instance describing the new deployment to create</param>
IObservable<Deployment> Create(int repositoryId, NewDeployment newDeployment); IObservable<Deployment> Create(long repositoryId, NewDeployment newDeployment);
/// <summary> /// <summary>
/// Client for managing deployment status. /// Client for managing deployment status.

View File

@@ -45,7 +45,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository /// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<Activity> GetAllForRepository(int repositoryId); IObservable<Activity> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all the events for a given repository /// Gets all the events for a given repository
@@ -66,7 +66,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<Activity> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<Activity> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets all the issue events for a given repository /// Gets all the issue events for a given repository
@@ -85,7 +85,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository /// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<Activity> GetAllIssuesForRepository(int repositoryId); IObservable<Activity> GetAllIssuesForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all the issue events for a given repository /// Gets all the issue events for a given repository
@@ -106,7 +106,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<Activity> GetAllIssuesForRepository(int repositoryId, ApiOptions options); IObservable<Activity> GetAllIssuesForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets all the events for a given repository network /// Gets all the events for a given repository network

View File

@@ -27,7 +27,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create </param> /// <param name="reaction">The reaction to create </param>
IObservable<Reaction> Create(int repositoryId, int number, NewReaction reaction); IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction);
/// <summary> /// <summary>
/// List reactions for a specified Issue Comment /// List reactions for a specified Issue Comment
@@ -44,6 +44,6 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks> /// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
IObservable<Reaction> GetAll(int repositoryId, int number); IObservable<Reaction> GetAll(long repositoryId, int number);
} }
} }

View File

@@ -31,7 +31,7 @@ namespace Octokit.Reactive
/// <param name="id">The issue comment id</param> /// <param name="id">The issue comment id</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<IssueComment> Get(int repositoryId, int id); IObservable<IssueComment> Get(long repositoryId, int id);
/// <summary> /// <summary>
/// Gets Issue Comments for a repository. /// Gets Issue Comments for a repository.
@@ -46,7 +46,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<IssueComment> GetAllForRepository(int repositoryId); IObservable<IssueComment> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets Issue Comments for a repository. /// Gets Issue Comments for a repository.
@@ -63,7 +63,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<IssueComment> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<IssueComment> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets Issue Comments for a specified Issue. /// Gets Issue Comments for a specified Issue.
@@ -80,7 +80,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
IObservable<IssueComment> GetAllForIssue(int repositoryId, int number); IObservable<IssueComment> GetAllForIssue(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets Issue Comments for a specified Issue. /// Gets Issue Comments for a specified Issue.
@@ -99,7 +99,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<IssueComment> GetAllForIssue(int repositoryId, int number, ApiOptions options); IObservable<IssueComment> GetAllForIssue(long repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
/// Creates a new Issue Comment for a specified Issue. /// Creates a new Issue Comment for a specified Issue.
@@ -118,7 +118,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="newComment">The text of the new comment</param> /// <param name="newComment">The text of the new comment</param>
IObservable<IssueComment> Create(int repositoryId, int number, string newComment); IObservable<IssueComment> Create(long repositoryId, int number, string newComment);
/// <summary> /// <summary>
/// Updates a specified Issue Comment. /// Updates a specified Issue Comment.
@@ -137,7 +137,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The comment id</param> /// <param name="id">The comment id</param>
/// <param name="commentUpdate">The modified comment</param> /// <param name="commentUpdate">The modified comment</param>
IObservable<IssueComment> Update(int repositoryId, int id, string commentUpdate); IObservable<IssueComment> Update(long repositoryId, int id, string commentUpdate);
/// <summary> /// <summary>
/// Deletes the specified Issue Comment /// Deletes the specified Issue Comment
@@ -154,6 +154,6 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/comments/#delete-a-comment</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#delete-a-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The comment id</param> /// <param name="id">The comment id</param>
IObservable<Unit> Delete(int repositoryId, int id); IObservable<Unit> Delete(long repositoryId, int id);
} }
} }

View File

@@ -25,7 +25,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks> /// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue id</param> /// <param name="number">The issue id</param>
IObservable<Reaction> GetAll(int repositoryId, int number); IObservable<Reaction> GetAll(long repositoryId, int number);
/// <summary> /// <summary>
/// Creates a reaction for a specified Issue. /// Creates a reaction for a specified Issue.
@@ -44,6 +44,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue id</param> /// <param name="number">The issue id</param>
/// <param name="reaction">The reaction to create </param> /// <param name="reaction">The reaction to create </param>
IObservable<Reaction> Create(int repositoryId, int number, NewReaction reaction); IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction);
} }
} }

View File

@@ -41,7 +41,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
IObservable<TimelineEventInfo> GetAllForIssue(int repositoryId, int number); IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets all the various events that have occurred around an issue or pull request. /// Gets all the various events that have occurred around an issue or pull request.
@@ -52,6 +52,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<TimelineEventInfo> GetAllForIssue(int repositoryId, int number, ApiOptions options); IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int number, ApiOptions options);
} }
} }

View File

@@ -67,7 +67,7 @@ namespace Octokit.Reactive
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<Issue> Get(int repositoryId, int number); IObservable<Issue> Get(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets all open issues assigned to the authenticated user across all the authenticated users visible /// Gets all open issues assigned to the authenticated user across all the authenticated users visible
@@ -208,7 +208,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/issues/#list-issues-for-a-repository /// http://developer.github.com/v3/issues/#list-issues-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<Issue> GetAllForRepository(int repositoryId); IObservable<Issue> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all open issues assigned to the authenticated user for the repository. /// Gets all open issues assigned to the authenticated user for the repository.
@@ -229,7 +229,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<Issue> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<Issue> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets issues for a repository. /// Gets issues for a repository.
@@ -250,7 +250,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="request">Used to filter and sort the list of issues returned</param>
IObservable<Issue> GetAllForRepository(int repositoryId, RepositoryIssueRequest request); IObservable<Issue> GetAllForRepository(long repositoryId, RepositoryIssueRequest request);
/// <summary> /// <summary>
/// Gets issues for a repository. /// Gets issues for a repository.
@@ -273,7 +273,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="request">Used to filter and sort the list of issues returned</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<Issue> GetAllForRepository(int repositoryId, RepositoryIssueRequest request, ApiOptions options); IObservable<Issue> GetAllForRepository(long repositoryId, RepositoryIssueRequest request, ApiOptions options);
/// <summary> /// <summary>
/// Creates an issue for the specified repository. Any user with pull access to a repository can create an /// Creates an issue for the specified repository. Any user with pull access to a repository can create an
@@ -292,7 +292,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/#create-an-issue</remarks> /// <remarks>http://developer.github.com/v3/issues/#create-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newIssue">A <see cref="NewIssue"/> instance describing the new issue to create</param> /// <param name="newIssue">A <see cref="NewIssue"/> instance describing the new issue to create</param>
IObservable<Issue> Create(int repositoryId, NewIssue newIssue); IObservable<Issue> Create(long repositoryId, NewIssue newIssue);
/// <summary> /// <summary>
/// Creates an issue for the specified repository. Any user with pull access to a repository can create an /// Creates an issue for the specified repository. Any user with pull access to a repository can create an
@@ -315,7 +315,7 @@ namespace Octokit.Reactive
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
/// <param name="issueUpdate">An <see cref="IssueUpdate"/> instance describing the changes to make to the issue /// <param name="issueUpdate">An <see cref="IssueUpdate"/> instance describing the changes to make to the issue
/// </param> /// </param>
IObservable<Issue> Update(int repositoryId, int number, IssueUpdate issueUpdate); IObservable<Issue> Update(long repositoryId, int number, IssueUpdate issueUpdate);
/// <summary> /// <summary>
/// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue. /// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue.
@@ -332,7 +332,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks> /// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
IObservable<Unit> Lock(int repositoryId, int number); IObservable<Unit> Lock(long repositoryId, int number);
/// <summary> /// <summary>
/// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue. /// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue.
@@ -349,6 +349,6 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks> /// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
IObservable<Unit> Unlock(int repositoryId, int number); IObservable<Unit> Unlock(long repositoryId, int number);
} }
} }

View File

@@ -30,7 +30,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
IObservable<EventInfo> GetAllForIssue(int repositoryId, int number); IObservable<EventInfo> GetAllForIssue(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets all events for the issue. /// Gets all events for the issue.
@@ -53,7 +53,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<EventInfo> GetAllForIssue(int repositoryId, int number, ApiOptions options); IObservable<EventInfo> GetAllForIssue(long repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
/// Gets all events for the repository. /// Gets all events for the repository.
@@ -72,7 +72,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/issues/events/#list-events-for-a-repository /// http://developer.github.com/v3/issues/events/#list-events-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<IssueEvent> GetAllForRepository(int repositoryId); IObservable<IssueEvent> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all events for the repository. /// Gets all events for the repository.
@@ -93,7 +93,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<IssueEvent> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<IssueEvent> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets a single event /// Gets a single event
@@ -118,6 +118,6 @@ namespace Octokit.Reactive
/// <param name="number">The event id</param> /// <param name="number">The event id</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<IssueEvent> Get(int repositoryId, int number); IObservable<IssueEvent> Get(long repositoryId, int number);
} }
} }

View File

@@ -31,7 +31,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
IObservable<Label> GetAllForIssue(int repositoryId, int number); IObservable<Label> GetAllForIssue(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets all labels for the issue. /// Gets all labels for the issue.
@@ -54,7 +54,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<Label> GetAllForIssue(int repositoryId, int number, ApiOptions options); IObservable<Label> GetAllForIssue(long repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
/// Gets all labels for the repository. /// Gets all labels for the repository.
@@ -73,7 +73,7 @@ namespace Octokit.Reactive
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information. /// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<Label> GetAllForRepository(int repositoryId); IObservable<Label> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all labels for the repository. /// Gets all labels for the repository.
@@ -94,7 +94,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<Label> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<Label> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets labels for every issue in a milestone /// Gets labels for every issue in a milestone
@@ -115,7 +115,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
IObservable<Label> GetAllForMilestone(int repositoryId, int number); IObservable<Label> GetAllForMilestone(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets labels for every issue in a milestone /// Gets labels for every issue in a milestone
@@ -138,7 +138,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<Label> GetAllForMilestone(int repositoryId, int number, ApiOptions options); IObservable<Label> GetAllForMilestone(long repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
/// Gets a single Label by name. /// Gets a single Label by name.
@@ -163,7 +163,7 @@ namespace Octokit.Reactive
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<Label> Get(int repositoryId, string labelName); IObservable<Label> Get(long repositoryId, string labelName);
/// <summary> /// <summary>
/// Deletes a label. /// Deletes a label.
@@ -184,7 +184,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
IObservable<Unit> Delete(int repositoryId, string labelName); IObservable<Unit> Delete(long repositoryId, string labelName);
/// <summary> /// <summary>
/// Creates a label. /// Creates a label.
@@ -205,7 +205,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
IObservable<Label> Create(int repositoryId, NewLabel newLabel); IObservable<Label> Create(long repositoryId, NewLabel newLabel);
/// <summary> /// <summary>
/// Updates a label. /// Updates a label.
@@ -228,7 +228,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
IObservable<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate); IObservable<Label> Update(long repositoryId, string labelName, LabelUpdate labelUpdate);
/// <summary> /// <summary>
/// Adds a label to an issue /// Adds a label to an issue
@@ -251,7 +251,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
IObservable<Label> AddToIssue(int repositoryId, int number, string[] labels); IObservable<Label> AddToIssue(long repositoryId, int number, string[] labels);
/// <summary> /// <summary>
/// Removes a label from an issue /// Removes a label from an issue
@@ -274,7 +274,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
IObservable<Unit> RemoveFromIssue(int repositoryId, int number, string labelName); IObservable<Unit> RemoveFromIssue(long repositoryId, int number, string labelName);
/// <summary> /// <summary>
/// Replaces all labels on the specified issues with the provided labels /// Replaces all labels on the specified issues with the provided labels
@@ -297,7 +297,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
IObservable<Label> ReplaceAllForIssue(int repositoryId, int number, string[] labels); IObservable<Label> ReplaceAllForIssue(long repositoryId, int number, string[] labels);
/// <summary> /// <summary>
/// Removes all labels from an issue /// Removes all labels from an issue
@@ -318,6 +318,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
IObservable<Unit> RemoveAllFromIssue(int repositoryId, int number); IObservable<Unit> RemoveAllFromIssue(long repositoryId, int number);
} }
} }

View File

@@ -31,6 +31,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="merge">The merge to create</param> /// <param name="merge">The merge to create</param>
/// <returns></returns> /// <returns></returns>
IObservable<Merge> Create(int repositoryId, NewMerge merge); IObservable<Merge> Create(long repositoryId, NewMerge merge);
} }
} }

View File

@@ -32,7 +32,7 @@ namespace Octokit.Reactive
/// <returns></returns> /// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<Milestone> Get(int repositoryId, int number); IObservable<Milestone> Get(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets all open milestones for the repository. /// Gets all open milestones for the repository.
@@ -53,7 +53,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns></returns> /// <returns></returns>
IObservable<Milestone> GetAllForRepository(int repositoryId); IObservable<Milestone> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all open milestones for the repository. /// Gets all open milestones for the repository.
@@ -76,7 +76,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <returns></returns> /// <returns></returns>
IObservable<Milestone> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<Milestone> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets all open milestones for the repository. /// Gets all open milestones for the repository.
@@ -99,7 +99,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of Milestones returned</param> /// <param name="request">Used to filter and sort the list of Milestones returned</param>
/// <returns></returns> /// <returns></returns>
IObservable<Milestone> GetAllForRepository(int repositoryId, MilestoneRequest request); IObservable<Milestone> GetAllForRepository(long repositoryId, MilestoneRequest request);
/// <summary> /// <summary>
/// Gets all open milestones for the repository. /// Gets all open milestones for the repository.
@@ -124,7 +124,7 @@ namespace Octokit.Reactive
/// <param name="request">Used to filter and sort the list of Milestones returned</param> /// <param name="request">Used to filter and sort the list of Milestones returned</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns> /// <returns></returns>
IObservable<Milestone> GetAllForRepository(int repositoryId, MilestoneRequest request, ApiOptions options); IObservable<Milestone> GetAllForRepository(long repositoryId, MilestoneRequest request, ApiOptions options);
/// <summary> /// <summary>
/// Creates a milestone for the specified repository. Any user with pull access to a repository can create a /// Creates a milestone for the specified repository. Any user with pull access to a repository can create a
@@ -145,7 +145,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newMilestone">A <see cref="NewMilestone"/> instance describing the new Milestone to create</param> /// <param name="newMilestone">A <see cref="NewMilestone"/> instance describing the new Milestone to create</param>
/// <returns></returns> /// <returns></returns>
IObservable<Milestone> Create(int repositoryId, NewMilestone newMilestone); IObservable<Milestone> Create(long repositoryId, NewMilestone newMilestone);
/// <summary> /// <summary>
/// Updates a milestone for the specified repository. Any user with pull access to a repository can create a /// Updates a milestone for the specified repository. Any user with pull access to a repository can create a
@@ -170,7 +170,7 @@ namespace Octokit.Reactive
/// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone /// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone
/// </param> /// </param>
/// <returns></returns> /// <returns></returns>
IObservable<Milestone> Update(int repositoryId, int number, MilestoneUpdate milestoneUpdate); IObservable<Milestone> Update(long repositoryId, int number, MilestoneUpdate milestoneUpdate);
/// <summary> /// <summary>
/// Deletes a milestone for the specified repository. Any user with pull access to a repository can create an /// Deletes a milestone for the specified repository. Any user with pull access to a repository can create an
@@ -191,6 +191,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The milestone number</param> /// <param name="number">The milestone number</param>
/// <returns></returns> /// <returns></returns>
IObservable<Unit> Delete(int repositoryId, int number); IObservable<Unit> Delete(long repositoryId, int number);
} }
} }

View File

@@ -40,7 +40,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
IObservable<Notification> GetAllForRepository(int repositoryId); IObservable<Notification> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Retrieves all of the <see cref="Notification"/>s for the current user specific to the specified repository. /// Retrieves all of the <see cref="Notification"/>s for the current user specific to the specified repository.
@@ -57,7 +57,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository.</param> /// <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>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
IObservable<Notification> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<Notification> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Retrieves all of the <see cref="Notification"/>s for the current user. /// Retrieves all of the <see cref="Notification"/>s for the current user.
@@ -91,7 +91,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="request">Specifies the parameters to filter notifications by</param> /// <param name="request">Specifies the parameters to filter notifications by</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
IObservable<Notification> GetAllForRepository(int repositoryId, NotificationsRequest request); IObservable<Notification> GetAllForRepository(long repositoryId, NotificationsRequest request);
/// <summary> /// <summary>
/// Retrieves all of the <see cref="Notification"/>s for the current user specific to the specified repository. /// Retrieves all of the <see cref="Notification"/>s for the current user specific to the specified repository.
@@ -110,7 +110,7 @@ namespace Octokit.Reactive
/// <param name="request">Specifies the parameters to filter notifications by</param> /// <param name="request">Specifies the parameters to filter notifications by</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
IObservable<Notification> GetAllForRepository(int repositoryId, NotificationsRequest request, ApiOptions options); IObservable<Notification> GetAllForRepository(long repositoryId, NotificationsRequest request, ApiOptions options);
/// <summary> /// <summary>
/// Marks all notifications as read. /// Marks all notifications as read.
@@ -138,7 +138,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <remarks>http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository</remarks>
IObservable<Unit> MarkAsReadForRepository(int repositoryId); IObservable<Unit> MarkAsReadForRepository(long repositoryId);
/// <summary> /// <summary>
/// Marks the notifications for a given repository as read. /// Marks the notifications for a given repository as read.
@@ -155,7 +155,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="markAsReadRequest">The <see cref="MarkAsReadRequest"/> parameter which specifies which notifications to mark.</param> /// <param name="markAsReadRequest">The <see cref="MarkAsReadRequest"/> parameter which specifies which notifications to mark.</param>
/// <remarks>http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository</remarks>
IObservable<Unit> MarkAsReadForRepository(int repositoryId, MarkAsReadRequest markAsReadRequest); IObservable<Unit> MarkAsReadForRepository(long repositoryId, MarkAsReadRequest markAsReadRequest);
/// <summary> /// <summary>
/// Retrives a single <see cref="Notification"/> by Id. /// Retrives a single <see cref="Notification"/> by Id.

View File

@@ -25,7 +25,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks> /// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
IObservable<Reaction> GetAll(int repositoryId, int number); IObservable<Reaction> GetAll(long repositoryId, int number);
/// <summary> /// <summary>
/// Creates a reaction for a specified Pull Request Review Comment. /// Creates a reaction for a specified Pull Request Review Comment.
@@ -44,6 +44,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The owner of the repository</param> /// <param name="repositoryId">The owner of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create</param> /// <param name="reaction">The reaction to create</param>
IObservable<Reaction> Create(int repositoryId, int number, NewReaction reaction); IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction);
} }
} }

View File

@@ -26,7 +26,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
IObservable<PullRequestReviewComment> GetAll(int repositoryId, int number); IObservable<PullRequestReviewComment> GetAll(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets review comments for a specified pull request. /// Gets review comments for a specified pull request.
@@ -45,7 +45,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<PullRequestReviewComment> GetAll(int repositoryId, int number, ApiOptions options); IObservable<PullRequestReviewComment> GetAll(long repositoryId, int number, ApiOptions options);
/// <summary> /// <summary>
/// Gets a list of the pull request review comments in a specified repository. /// Gets a list of the pull request review comments in a specified repository.
@@ -60,7 +60,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<PullRequestReviewComment> GetAllForRepository(int repositoryId); IObservable<PullRequestReviewComment> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets a list of the pull request review comments in a specified repository. /// Gets a list of the pull request review comments in a specified repository.
@@ -77,7 +77,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<PullRequestReviewComment> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<PullRequestReviewComment> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets a list of the pull request review comments in a specified repository. /// Gets a list of the pull request review comments in a specified repository.
@@ -94,7 +94,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">The sorting <see cref="PullRequestReviewCommentRequest">parameters</see></param> /// <param name="request">The sorting <see cref="PullRequestReviewCommentRequest">parameters</see></param>
IObservable<PullRequestReviewComment> GetAllForRepository(int repositoryId, PullRequestReviewCommentRequest request); IObservable<PullRequestReviewComment> GetAllForRepository(long repositoryId, PullRequestReviewCommentRequest request);
/// <summary> /// <summary>
/// Gets a list of the pull request review comments in a specified repository. /// Gets a list of the pull request review comments in a specified repository.
@@ -113,7 +113,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">The sorting <see cref="PullRequestReviewCommentRequest">parameters</see></param> /// <param name="request">The sorting <see cref="PullRequestReviewCommentRequest">parameters</see></param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<PullRequestReviewComment> GetAllForRepository(int repositoryId, PullRequestReviewCommentRequest request, ApiOptions options); IObservable<PullRequestReviewComment> GetAllForRepository(long repositoryId, PullRequestReviewCommentRequest request, ApiOptions options);
/// <summary> /// <summary>
/// Gets a single pull request review comment by number. /// Gets a single pull request review comment by number.
@@ -130,7 +130,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#get-a-single-comment</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#get-a-single-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request review comment number</param> /// <param name="number">The pull request review comment number</param>
IObservable<PullRequestReviewComment> GetComment(int repositoryId, int number); IObservable<PullRequestReviewComment> GetComment(long repositoryId, int number);
/// <summary> /// <summary>
/// Creates a comment on a pull request review. /// Creates a comment on a pull request review.
@@ -149,7 +149,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The Pull Request number</param> /// <param name="number">The Pull Request number</param>
/// <param name="comment">The comment</param> /// <param name="comment">The comment</param>
IObservable<PullRequestReviewComment> Create(int repositoryId, int number, PullRequestReviewCommentCreate comment); IObservable<PullRequestReviewComment> Create(long repositoryId, int number, PullRequestReviewCommentCreate comment);
/// <summary> /// <summary>
/// Creates a comment on a pull request review as a reply to another comment. /// Creates a comment on a pull request review as a reply to another comment.
@@ -168,7 +168,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
/// <param name="comment">The comment</param> /// <param name="comment">The comment</param>
IObservable<PullRequestReviewComment> CreateReply(int repositoryId, int number, PullRequestReviewCommentReplyCreate comment); IObservable<PullRequestReviewComment> CreateReply(long repositoryId, int number, PullRequestReviewCommentReplyCreate comment);
/// <summary> /// <summary>
/// Edits a comment on a pull request review. /// Edits a comment on a pull request review.
@@ -187,7 +187,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request review comment number</param> /// <param name="number">The pull request review comment number</param>
/// <param name="comment">The edited comment</param> /// <param name="comment">The edited comment</param>
IObservable<PullRequestReviewComment> Edit(int repositoryId, int number, PullRequestReviewCommentEdit comment); IObservable<PullRequestReviewComment> Edit(long repositoryId, int number, PullRequestReviewCommentEdit comment);
/// <summary> /// <summary>
/// Deletes a comment on a pull request review. /// Deletes a comment on a pull request review.
@@ -204,6 +204,6 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#delete-a-comment</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#delete-a-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request review comment number</param> /// <param name="number">The pull request review comment number</param>
IObservable<Unit> Delete(int repositoryId, int number); IObservable<Unit> Delete(long repositoryId, int number);
} }
} }

View File

@@ -39,7 +39,7 @@ namespace Octokit.Reactive
/// <param name="number">The number of the pull request</param> /// <param name="number">The number of the pull request</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<PullRequest> Get(int repositoryId, int number); IObservable<PullRequest> Get(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets all open pull requests for the repository. /// Gets all open pull requests for the repository.
@@ -58,7 +58,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/pulls/#list-pull-requests /// http://developer.github.com/v3/pulls/#list-pull-requests
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<PullRequest> GetAllForRepository(int repositoryId); IObservable<PullRequest> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all open pull requests for the repository. /// Gets all open pull requests for the repository.
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<PullRequest> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<PullRequest> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Query pull requests for the repository based on criteria /// Query pull requests for the repository based on criteria
@@ -100,7 +100,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of pull requests returned</param> /// <param name="request">Used to filter and sort the list of pull requests returned</param>
IObservable<PullRequest> GetAllForRepository(int repositoryId, PullRequestRequest request); IObservable<PullRequest> GetAllForRepository(long repositoryId, PullRequestRequest request);
/// <summary> /// <summary>
/// Query pull requests for the repository based on criteria /// Query pull requests for the repository based on criteria
@@ -123,7 +123,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of pull requests returned</param> /// <param name="request">Used to filter and sort the list of pull requests returned</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<PullRequest> GetAllForRepository(int repositoryId, PullRequestRequest request, ApiOptions options); IObservable<PullRequest> GetAllForRepository(long repositoryId, PullRequestRequest request, ApiOptions options);
/// <summary> /// <summary>
/// Creates a pull request for the specified repository. /// Creates a pull request for the specified repository.
@@ -140,7 +140,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/#create-a-pull-request</remarks> /// <remarks>http://developer.github.com/v3/pulls/#create-a-pull-request</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newPullRequest">A <see cref="NewPullRequest"/> instance describing the new PullRequest to create</param> /// <param name="newPullRequest">A <see cref="NewPullRequest"/> instance describing the new PullRequest to create</param>
IObservable<PullRequest> Create(int repositoryId, NewPullRequest newPullRequest); IObservable<PullRequest> Create(long repositoryId, NewPullRequest newPullRequest);
/// <summary> /// <summary>
/// Update a pull request for the specified repository. /// Update a pull request for the specified repository.
@@ -161,7 +161,7 @@ namespace Octokit.Reactive
/// <param name="number">The PullRequest number</param> /// <param name="number">The PullRequest number</param>
/// <param name="pullRequestUpdate">An <see cref="PullRequestUpdate"/> instance describing the changes to make to the PullRequest /// <param name="pullRequestUpdate">An <see cref="PullRequestUpdate"/> instance describing the changes to make to the PullRequest
/// </param> /// </param>
IObservable<PullRequest> Update(int repositoryId, int number, PullRequestUpdate pullRequestUpdate); IObservable<PullRequest> Update(long repositoryId, int number, PullRequestUpdate pullRequestUpdate);
/// <summary> /// <summary>
/// Merge a pull request. /// Merge a pull request.
@@ -180,7 +180,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
/// <param name="mergePullRequest">A <see cref="MergePullRequest"/> instance describing a pull request merge</param> /// <param name="mergePullRequest">A <see cref="MergePullRequest"/> instance describing a pull request merge</param>
IObservable<PullRequestMerge> Merge(int repositoryId, int number, MergePullRequest mergePullRequest); IObservable<PullRequestMerge> Merge(long repositoryId, int number, MergePullRequest mergePullRequest);
/// <summary> /// <summary>
/// Gets the pull request merge status. /// Gets the pull request merge status.
@@ -197,7 +197,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged</remarks> /// <remarks>http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
IObservable<bool> Merged(int repositoryId, int number); IObservable<bool> Merged(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets the list of commits on a pull request. /// Gets the list of commits on a pull request.
@@ -214,7 +214,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/#list-commits-on-a-pull-request</remarks> /// <remarks>http://developer.github.com/v3/pulls/#list-commits-on-a-pull-request</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
IObservable<PullRequestCommit> Commits(int repositoryId, int number); IObservable<PullRequestCommit> Commits(long repositoryId, int number);
/// <summary> /// <summary>
/// Get the list of files on a pull request. /// Get the list of files on a pull request.
@@ -231,6 +231,6 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks> /// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
IObservable<PullRequestFile> Files(int repositoryId, int number); IObservable<PullRequestFile> Files(long repositoryId, int number);
} }
} }

View File

@@ -37,7 +37,7 @@ namespace Octokit.Reactive
/// <returns></returns> /// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<Reference> Get(int repositoryId, string reference); IObservable<Reference> Get(long repositoryId, string reference);
/// <summary> /// <summary>
/// Gets all references for a given repository /// Gets all references for a given repository
@@ -58,7 +58,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns></returns> /// <returns></returns>
IObservable<Reference> GetAll(int repositoryId); IObservable<Reference> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets references for a given repository by sub-namespace, i.e. "tags" or "heads" /// Gets references for a given repository by sub-namespace, i.e. "tags" or "heads"
@@ -81,7 +81,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="subNamespace">The sub-namespace to get references for</param> /// <param name="subNamespace">The sub-namespace to get references for</param>
/// <returns></returns> /// <returns></returns>
IObservable<Reference> GetAllForSubNamespace(int repositoryId, string subNamespace); IObservable<Reference> GetAllForSubNamespace(long repositoryId, string subNamespace);
/// <summary> /// <summary>
/// Creates a reference for a given repository /// Creates a reference for a given repository
@@ -104,7 +104,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference to create</param> /// <param name="reference">The reference to create</param>
/// <returns></returns> /// <returns></returns>
IObservable<Reference> Create(int repositoryId, NewReference reference); IObservable<Reference> Create(long repositoryId, NewReference reference);
/// <summary> /// <summary>
/// Updates a reference for a given repository by reference name /// Updates a reference for a given repository by reference name
@@ -129,7 +129,7 @@ namespace Octokit.Reactive
/// <param name="reference">The name of the reference</param> /// <param name="reference">The name of the reference</param>
/// <param name="referenceUpdate">The updated reference data</param> /// <param name="referenceUpdate">The updated reference data</param>
/// <returns></returns> /// <returns></returns>
IObservable<Reference> Update(int repositoryId, string reference, ReferenceUpdate referenceUpdate); IObservable<Reference> Update(long repositoryId, string reference, ReferenceUpdate referenceUpdate);
/// <summary> /// <summary>
/// Deletes a reference for a given repository by reference name /// Deletes a reference for a given repository by reference name
@@ -152,6 +152,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The name of the reference</param> /// <param name="reference">The name of the reference</param>
/// <returns></returns> /// <returns></returns>
IObservable<Unit> Delete(int repositoryId, string reference); IObservable<Unit> Delete(long repositoryId, string reference);
} }
} }

View File

@@ -31,7 +31,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<Release> GetAll(int repositoryId); IObservable<Release> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets all <see cref="Release"/>s for the specified repository. /// Gets all <see cref="Release"/>s for the specified repository.
@@ -54,7 +54,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<Release> GetAll(int repositoryId, ApiOptions options); IObservable<Release> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets a single <see cref="Release"/> for the specified repository. /// Gets a single <see cref="Release"/> for the specified repository.
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
/// <param name="id">The id of the release</param> /// <param name="id">The id of the release</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")]
IObservable<Release> Get(int repositoryId, int id); IObservable<Release> Get(long repositoryId, int id);
/// <summary> /// <summary>
/// Gets the latest <see cref="Release"/> for the specified repository. /// Gets the latest <see cref="Release"/> for the specified repository.
@@ -100,7 +100,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<Release> GetLatest(int repositoryId); IObservable<Release> GetLatest(long repositoryId);
/// <summary> /// <summary>
/// Creates a new <see cref="Release"/> for the specified repository. /// Creates a new <see cref="Release"/> for the specified repository.
@@ -123,7 +123,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="data">A description of the release to create</param> /// <param name="data">A description of the release to create</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<Release> Create(int repositoryId, NewRelease data); IObservable<Release> Create(long repositoryId, NewRelease data);
/// <summary> /// <summary>
/// Edits an existing <see cref="Release"/> for the specified repository. /// Edits an existing <see cref="Release"/> for the specified repository.
@@ -148,7 +148,7 @@ namespace Octokit.Reactive
/// <param name="id">The id of the release</param> /// <param name="id">The id of the release</param>
/// <param name="data">A description of the release to edit</param> /// <param name="data">A description of the release to edit</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<Release> Edit(int repositoryId, int id, ReleaseUpdate data); IObservable<Release> Edit(long repositoryId, int id, ReleaseUpdate data);
/// <summary> /// <summary>
/// Deletes an existing <see cref="Release"/> for the specified repository. /// Deletes an existing <see cref="Release"/> for the specified repository.
@@ -171,7 +171,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The id of the release to delete</param> /// <param name="id">The id of the release to delete</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<Unit> Delete(int repositoryId, int id); IObservable<Unit> Delete(long repositoryId, int id);
/// <summary> /// <summary>
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository. /// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
@@ -194,7 +194,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The id of the <see cref="Release"/>.</param> /// <param name="id">The id of the <see cref="Release"/>.</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<ReleaseAsset> GetAllAssets(int repositoryId, int id); IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id);
/// <summary> /// <summary>
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository. /// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
@@ -219,7 +219,7 @@ namespace Octokit.Reactive
/// <param name="id">The id of the <see cref="Release"/>.</param> /// <param name="id">The id of the <see cref="Release"/>.</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<ReleaseAsset> GetAllAssets(int repositoryId, int id, ApiOptions options); IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id, ApiOptions options);
/// <summary> /// <summary>
/// Uploads a <see cref="ReleaseAsset"/> for the specified release. /// Uploads a <see cref="ReleaseAsset"/> for the specified release.
@@ -251,7 +251,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="assetId">The id of the <see cref="ReleaseAsset"/></param> /// <param name="assetId">The id of the <see cref="ReleaseAsset"/></param>
IObservable<ReleaseAsset> GetAsset(int repositoryId, int assetId); IObservable<ReleaseAsset> GetAsset(long repositoryId, int assetId);
/// <summary> /// <summary>
/// Edits the <see cref="ReleaseAsset"/> for the specified release of the specified repository. /// Edits the <see cref="ReleaseAsset"/> for the specified release of the specified repository.
@@ -274,7 +274,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="assetId">The id of the <see cref="ReleaseAsset"/></param> /// <param name="assetId">The id of the <see cref="ReleaseAsset"/></param>
/// <param name="data">Description of the asset with its amended data</param> /// <param name="data">Description of the asset with its amended data</param>
IObservable<ReleaseAsset> EditAsset(int repositoryId, int assetId, ReleaseAssetUpdate data); IObservable<ReleaseAsset> EditAsset(long repositoryId, int assetId, ReleaseAssetUpdate data);
/// <summary> /// <summary>
/// Deletes the specified <see cref="ReleaseAsset"/> from the specified repository /// Deletes the specified <see cref="ReleaseAsset"/> from the specified repository
@@ -295,6 +295,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The id of the <see cref="ReleaseAsset"/>.</param> /// <param name="id">The id of the <see cref="ReleaseAsset"/>.</param>
IObservable<Unit> DeleteAsset(int repositoryId, int id); IObservable<Unit> DeleteAsset(long repositoryId, int id);
} }
} }

View File

@@ -30,7 +30,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<User> GetAll(int repositoryId); IObservable<User> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets all the collaborators on a repository. /// Gets all the collaborators on a repository.
@@ -53,7 +53,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <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>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<User> GetAll(int repositoryId, ApiOptions options); IObservable<User> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Checks if a user is a collaborator on a repository. /// Checks if a user is a collaborator on a repository.
@@ -76,7 +76,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">Username of the prospective collaborator</param> /// <param name="user">Username of the prospective collaborator</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<bool> IsCollaborator(int repositoryId, string user); IObservable<bool> IsCollaborator(long repositoryId, string user);
/// <summary> /// <summary>
/// Adds a new collaborator to the repository. /// Adds a new collaborator to the repository.
@@ -112,7 +112,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">Username of the new collaborator</param> /// <param name="user">Username of the new collaborator</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<Unit> Add(int repositoryId, string user); IObservable<Unit> Add(long repositoryId, string user);
/// <summary> /// <summary>
/// Adds a new collaborator to the repository. /// Adds a new collaborator to the repository.
@@ -124,7 +124,7 @@ namespace Octokit.Reactive
/// <param name="user">Username of the new collaborator</param> /// <param name="user">Username of the new collaborator</param>
/// <param name="permission">The permission to set. Only valid on organization-owned repositories.</param> /// <param name="permission">The permission to set. Only valid on organization-owned repositories.</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<bool> Add(int repositoryId, string user, CollaboratorRequest permission); IObservable<bool> Add(long repositoryId, string user, CollaboratorRequest permission);
/// <summary> /// <summary>
/// Invites a user as a collaborator to a repository. /// Invites a user as a collaborator to a repository.
@@ -158,7 +158,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">Username of the new collaborator</param> /// <param name="user">Username of the new collaborator</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<RepositoryInvitation> Invite(int repositoryId, string user); IObservable<RepositoryInvitation> Invite(long repositoryId, string user);
/// <summary> /// <summary>
/// Invites a user as a collaborator to a repository. /// Invites a user as a collaborator to a repository.
@@ -170,7 +170,7 @@ namespace Octokit.Reactive
/// <param name="user">Username of the new collaborator</param> /// <param name="user">Username of the new collaborator</param>
/// <param name="permission">The permission to set. Only valid on organization-owned repositories.</param> /// <param name="permission">The permission to set. Only valid on organization-owned repositories.</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<RepositoryInvitation> Invite(int repositoryId, string user, CollaboratorRequest permission); IObservable<RepositoryInvitation> Invite(long repositoryId, string user, CollaboratorRequest permission);
/// <summary> /// <summary>
/// Deletes a collaborator from the repository. /// Deletes a collaborator from the repository.
@@ -193,6 +193,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">Username of the removed collaborator</param> /// <param name="user">Username of the removed collaborator</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
IObservable<Unit> Delete(int repositoryId, string user); IObservable<Unit> Delete(long repositoryId, string user);
} }
} }

View File

@@ -36,7 +36,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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> /// <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> /// <returns>An <see cref="IObservable{Unit}"/> for the operation</returns>
IObservable<Unit> Delete(int repositoryId); IObservable<Unit> Delete(long repositoryId);
/// <summary> /// <summary>
/// Retrieves the <see cref="Repository"/> for the specified owner and name. /// Retrieves the <see cref="Repository"/> for the specified owner and name.
@@ -53,7 +53,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns>A <see cref="Repository"/></returns> /// <returns>A <see cref="Repository"/></returns>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
IObservable<Repository> Get(int repositoryId); IObservable<Repository> Get(long repositoryId);
/// <summary> /// <summary>
/// Retrieves every public <see cref="Repository"/>. /// Retrieves every public <see cref="Repository"/>.
@@ -244,7 +244,7 @@ namespace Octokit.Reactive
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns>All <see cref="T:Octokit.Branch"/>es of the repository</returns> /// <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")] [Obsolete("Please use ObservableRepositoriesClient.Branch.GetAll() instead. This method will be removed in a future version")]
IObservable<Branch> GetAllBranches(int repositoryId); IObservable<Branch> GetAllBranches(long repositoryId);
/// <summary> /// <summary>
/// Gets all the branches for the specified repository. /// Gets all the branches for the specified repository.
@@ -271,7 +271,7 @@ namespace Octokit.Reactive
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns>All <see cref="T:Octokit.Branch"/>es of the repository</returns> /// <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")] [Obsolete("Please use ObservableRepositoriesClient.Branch.GetAll() instead. This method will be removed in a future version")]
IObservable<Branch> GetAllBranches(int repositoryId, ApiOptions options); IObservable<Branch> GetAllBranches(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets all contributors for the specified repository. Does not include anonymous contributors. /// Gets all contributors for the specified repository. Does not include anonymous contributors.
@@ -292,7 +292,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns>All contributors of the repository.</returns> /// <returns>All contributors of the repository.</returns>
IObservable<RepositoryContributor> GetAllContributors(int repositoryId); IObservable<RepositoryContributor> GetAllContributors(long repositoryId);
/// <summary> /// <summary>
/// Gets all contributors for the specified repository. Does not include anonymous contributors. /// Gets all contributors for the specified repository. Does not include anonymous contributors.
@@ -315,7 +315,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <returns>All contributors of the repository.</returns> /// <returns>All contributors of the repository.</returns>
IObservable<RepositoryContributor> GetAllContributors(int repositoryId, ApiOptions options); IObservable<RepositoryContributor> GetAllContributors(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets all contributors for the specified repository. With the option to include anonymous contributors. /// Gets all contributors for the specified repository. With the option to include anonymous contributors.
@@ -338,7 +338,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="includeAnonymous">True if anonymous contributors should be included in result; Otherwise false</param> /// <param name="includeAnonymous">True if anonymous contributors should be included in result; Otherwise false</param>
/// <returns>All contributors of the repository.</returns> /// <returns>All contributors of the repository.</returns>
IObservable<RepositoryContributor> GetAllContributors(int repositoryId, bool includeAnonymous); IObservable<RepositoryContributor> GetAllContributors(long repositoryId, bool includeAnonymous);
/// <summary> /// <summary>
/// Gets all contributors for the specified repository. With the option to include anonymous contributors. /// Gets all contributors for the specified repository. With the option to include anonymous contributors.
@@ -363,7 +363,7 @@ namespace Octokit.Reactive
/// <param name="includeAnonymous">True if anonymous contributors should be included in result; Otherwise false</param> /// <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> /// <param name="options">Options for changing the API response</param>
/// <returns>All contributors of the repository.</returns> /// <returns>All contributors of the repository.</returns>
IObservable<RepositoryContributor> GetAllContributors(int repositoryId, bool includeAnonymous, ApiOptions options); IObservable<RepositoryContributor> GetAllContributors(long repositoryId, bool includeAnonymous, ApiOptions options);
/// <summary> /// <summary>
/// Gets all languages for the specified repository. /// Gets all languages for the specified repository.
@@ -384,7 +384,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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> /// <returns>All languages used in the repository and the number of bytes of each language.</returns>
IObservable<RepositoryLanguage> GetAllLanguages(int repositoryId); IObservable<RepositoryLanguage> GetAllLanguages(long repositoryId);
/// <summary> /// <summary>
/// Gets all teams for the specified repository. /// Gets all teams for the specified repository.
@@ -405,7 +405,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns>All <see cref="T:Octokit.Team"/>s associated with the repository</returns> /// <returns>All <see cref="T:Octokit.Team"/>s associated with the repository</returns>
IObservable<Team> GetAllTeams(int repositoryId); IObservable<Team> GetAllTeams(long repositoryId);
/// <summary> /// <summary>
/// Gets all teams for the specified repository. /// Gets all teams for the specified repository.
@@ -428,7 +428,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <returns>All <see cref="T:Octokit.Team"/>s associated with the repository</returns> /// <returns>All <see cref="T:Octokit.Team"/>s associated with the repository</returns>
IObservable<Team> GetAllTeams(int repositoryId, ApiOptions options); IObservable<Team> GetAllTeams(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets all tags for the specified repository. /// Gets all tags for the specified repository.
@@ -449,7 +449,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns>All of the repositories tags.</returns> /// <returns>All of the repositories tags.</returns>
IObservable<RepositoryTag> GetAllTags(int repositoryId); IObservable<RepositoryTag> GetAllTags(long repositoryId);
/// <summary> /// <summary>
/// Gets all tags for the specified repository. /// Gets all tags for the specified repository.
@@ -472,7 +472,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <returns>All of the repositories tags.</returns> /// <returns>All of the repositories tags.</returns>
IObservable<RepositoryTag> GetAllTags(int repositoryId, ApiOptions options); IObservable<RepositoryTag> GetAllTags(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets the specified branch. /// Gets the specified branch.
@@ -497,7 +497,7 @@ namespace Octokit.Reactive
/// <param name="branchName">The name of the branch</param> /// <param name="branchName">The name of the branch</param>
/// <returns>The specified <see cref="T:Octokit.Branch"/></returns> /// <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")] [Obsolete("Please use ObservableRepositoriesClient.Branch.Get() instead. This method will be removed in a future version")]
IObservable<Branch> GetBranch(int repositoryId, string branchName); IObservable<Branch> GetBranch(long repositoryId, string branchName);
/// <summary> /// <summary>
/// Updates the specified repository with the values given in <paramref name="update"/> /// Updates the specified repository with the values given in <paramref name="update"/>
@@ -514,7 +514,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="update">New values to update the repository with</param> /// <param name="update">New values to update the repository with</param>
/// <returns>The updated <see cref="T:Octokit.Repository"/></returns> /// <returns>The updated <see cref="T:Octokit.Repository"/></returns>
IObservable<Repository> Edit(int repositoryId, RepositoryUpdate update); IObservable<Repository> Edit(long repositoryId, RepositoryUpdate update);
/// <summary> /// <summary>
/// Edit the specified branch with the values given in <paramref name="update"/> /// Edit the specified branch with the values given in <paramref name="update"/>
@@ -535,7 +535,7 @@ namespace Octokit.Reactive
/// <param name="update">New values to update the branch with</param> /// <param name="update">New values to update the branch with</param>
/// <returns>The updated <see cref="T:Octokit.Branch"/></returns> /// <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.")] [Obsolete("This existing implementation will cease to work when the Branch Protection API preview period ends. Please use the ObservableRepositoryBranchesClient methods instead.")]
IObservable<Branch> EditBranch(int repositoryId, string branch, BranchUpdate update); IObservable<Branch> EditBranch(long repositoryId, string branch, BranchUpdate update);
/// <summary> /// <summary>
/// A client for GitHub's Repo Collaborators. /// A client for GitHub's Repo Collaborators.

View File

@@ -28,7 +28,7 @@ namespace Octokit.Reactive
/// See the <a href="https://developer.github.com/v3/repos/branches/#list-branches">API documentation</a> for more details /// See the <a href="https://developer.github.com/v3/repos/branches/#list-branches">API documentation</a> for more details
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
IObservable<Branch> GetAll(int repositoryId); IObservable<Branch> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets all the branches for the specified repository. /// Gets all the branches for the specified repository.
@@ -49,7 +49,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <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<Branch> GetAll(int repositoryId, ApiOptions options); IObservable<Branch> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets the specified branch. /// Gets the specified branch.
@@ -72,7 +72,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
IObservable<Branch> Get(int repositoryId, string branch); IObservable<Branch> Get(long repositoryId, string branch);
/// <summary> /// <summary>
/// Edit the specified branch with the values given in <paramref name="update"/> /// Edit the specified branch with the values given in <paramref name="update"/>
@@ -91,7 +91,7 @@ namespace Octokit.Reactive
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
/// <param name="update">New values to update the branch with</param> /// <param name="update">New values to update the branch with</param>
[Obsolete("This existing implementation will cease to work when the Branch Protection API preview period ends. Please use other ObservableRepositoryBranchesClient methods instead.")] [Obsolete("This existing implementation will cease to work when the Branch Protection API preview period ends. Please use other ObservableRepositoryBranchesClient methods instead.")]
IObservable<Branch> Edit(int repositoryId, string branch, BranchUpdate update); IObservable<Branch> Edit(long repositoryId, string branch, BranchUpdate update);
/// <summary> /// <summary>
/// Get the branch protection settings for the specified branch /> /// Get the branch protection settings for the specified branch />
@@ -112,7 +112,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
IObservable<BranchProtectionSettings> GetBranchProtection(int repositoryId, string branch); IObservable<BranchProtectionSettings> GetBranchProtection(long repositoryId, string branch);
/// <summary> /// <summary>
/// Update the branch protection settings for the specified branch /> /// Update the branch protection settings for the specified branch />
@@ -135,7 +135,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
/// <param name="update">Branch protection settings</param> /// <param name="update">Branch protection settings</param>
IObservable<BranchProtectionSettings> UpdateBranchProtection(int repositoryId, string branch, BranchProtectionSettingsUpdate update); IObservable<BranchProtectionSettings> UpdateBranchProtection(long repositoryId, string branch, BranchProtectionSettingsUpdate update);
/// <summary> /// <summary>
/// Remove the branch protection settings for the specified branch /> /// Remove the branch protection settings for the specified branch />
@@ -156,6 +156,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
IObservable<bool> DeleteBranchProtection(int repositoryId, string branch); IObservable<bool> DeleteBranchProtection(long repositoryId, string branch);
} }
} }

View File

@@ -31,7 +31,7 @@ namespace Octokit.Reactive
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<CommitComment> Get(int repositoryId, int number); IObservable<CommitComment> Get(long repositoryId, int number);
/// <summary> /// <summary>
/// Gets Commit Comments for a repository. /// Gets Commit Comments for a repository.
@@ -46,7 +46,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<CommitComment> GetAllForRepository(int repositoryId); IObservable<CommitComment> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets Commit Comments for a repository. /// Gets Commit Comments for a repository.
@@ -63,7 +63,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="options">Options to change the API response</param> /// <param name="options">Options to change the API response</param>
IObservable<CommitComment> GetAllForRepository(int repositoryId, ApiOptions options); IObservable<CommitComment> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets Commit Comments for a specified Commit. /// Gets Commit Comments for a specified Commit.
@@ -80,7 +80,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="sha">The sha of the commit</param> /// <param name="sha">The sha of the commit</param>
IObservable<CommitComment> GetAllForCommit(int repositoryId, string sha); IObservable<CommitComment> GetAllForCommit(long repositoryId, string sha);
/// <summary> /// <summary>
/// Gets Commit Comments for a specified Commit. /// Gets Commit Comments for a specified Commit.
@@ -99,7 +99,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="sha">The sha of the commit</param> /// <param name="sha">The sha of the commit</param>
/// <param name="options">Options to change the API response</param> /// <param name="options">Options to change the API response</param>
IObservable<CommitComment> GetAllForCommit(int repositoryId, string sha, ApiOptions options); IObservable<CommitComment> GetAllForCommit(long repositoryId, string sha, ApiOptions options);
/// <summary> /// <summary>
/// Creates a new Commit Comment for a specified Commit. /// Creates a new Commit Comment for a specified Commit.
@@ -118,7 +118,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="sha">The sha reference of commit</param> /// <param name="sha">The sha reference of commit</param>
/// <param name="newCommitComment">The new comment to add to the commit</param> /// <param name="newCommitComment">The new comment to add to the commit</param>
IObservable<CommitComment> Create(int repositoryId, string sha, NewCommitComment newCommitComment); IObservable<CommitComment> Create(long repositoryId, string sha, NewCommitComment newCommitComment);
/// <summary> /// <summary>
/// Updates a specified Commit Comment. /// Updates a specified Commit Comment.
@@ -137,7 +137,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment number</param> /// <param name="number">The comment number</param>
/// <param name="commentUpdate">The modified comment</param> /// <param name="commentUpdate">The modified comment</param>
IObservable<CommitComment> Update(int repositoryId, int number, string commentUpdate); IObservable<CommitComment> Update(long repositoryId, int number, string commentUpdate);
/// <summary> /// <summary>
/// Deletes the specified Commit Comment /// Deletes the specified Commit Comment
@@ -154,6 +154,6 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/repos/comments/#delete-a-commit-comment</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#delete-a-commit-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
IObservable<Unit> Delete(int repositoryId, int number); IObservable<Unit> Delete(long repositoryId, int number);
} }
} }

View File

@@ -28,7 +28,7 @@ namespace Octokit.Reactive
/// <param name="base">The reference to use as the base commit</param> /// <param name="base">The reference to use as the base commit</param>
/// <param name="head">The reference to use as the head commit</param> /// <param name="head">The reference to use as the head commit</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "base")] [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "base")]
IObservable<CompareResult> Compare(int repositoryId, string @base, string head); IObservable<CompareResult> Compare(long repositoryId, string @base, string head);
/// <summary> /// <summary>
/// Gets all commits for a given repository /// Gets all commits for a given repository
@@ -47,7 +47,7 @@ namespace Octokit.Reactive
/// <param name="reference">The reference for the commit</param> /// <param name="reference">The reference for the commit</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<GitHubCommit> Get(int repositoryId, string reference); IObservable<GitHubCommit> Get(long repositoryId, string reference);
/// <summary> /// <summary>
/// Gets all commits for a given repository /// Gets all commits for a given repository
@@ -60,7 +60,7 @@ namespace Octokit.Reactive
/// Gets all commits for a given repository /// Gets all commits for a given repository
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<GitHubCommit> GetAll(int repositoryId); IObservable<GitHubCommit> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets all commits for a given repository /// Gets all commits for a given repository
@@ -75,7 +75,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <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<GitHubCommit> GetAll(int repositoryId, ApiOptions options); IObservable<GitHubCommit> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets all commits for a given repository /// Gets all commits for a given repository
@@ -90,7 +90,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter list of commits returned</param> /// <param name="request">Used to filter list of commits returned</param>
IObservable<GitHubCommit> GetAll(int repositoryId, CommitRequest request); IObservable<GitHubCommit> GetAll(long repositoryId, CommitRequest request);
/// <summary> /// <summary>
/// Gets all commits for a given repository /// Gets all commits for a given repository
@@ -107,7 +107,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter list of commits returned</param> /// <param name="request">Used to filter list of commits returned</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<GitHubCommit> GetAll(int repositoryId, CommitRequest request, ApiOptions options); IObservable<GitHubCommit> GetAll(long repositoryId, CommitRequest request, ApiOptions options);
/// <summary> /// <summary>
/// Get the SHA-1 of a commit reference /// Get the SHA-1 of a commit reference
@@ -122,6 +122,6 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The repository reference</param> /// <param name="reference">The repository reference</param>
IObservable<string> GetSha1(int repositoryId, string reference); IObservable<string> GetSha1(long repositoryId, string reference);
} }
} }

View File

@@ -22,7 +22,7 @@ namespace Octokit.Reactive
/// Returns the HTML rendered README. /// Returns the HTML rendered README.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<Readme> GetReadme(int repositoryId); IObservable<Readme> GetReadme(long repositoryId);
/// <summary> /// <summary>
/// Returns just the HTML portion of the README without the surrounding HTML document. /// Returns just the HTML portion of the README without the surrounding HTML document.
@@ -35,7 +35,7 @@ namespace Octokit.Reactive
/// Returns just the HTML portion of the README without the surrounding HTML document. /// Returns just the HTML portion of the README without the surrounding HTML document.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<string> GetReadmeHtml(int repositoryId); IObservable<string> GetReadmeHtml(long repositoryId);
/// <summary> /// <summary>
/// Get an archive of a given repository's contents /// Get an archive of a given repository's contents
@@ -50,7 +50,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks> /// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<byte[]> GetArchive(int repositoryId); IObservable<byte[]> GetArchive(long repositoryId);
/// <summary> /// <summary>
/// Get an archive of a given repository's contents, in a specific format /// Get an archive of a given repository's contents, in a specific format
@@ -67,7 +67,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks> /// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param> /// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
IObservable<byte[]> GetArchive(int repositoryId, ArchiveFormat archiveFormat); IObservable<byte[]> GetArchive(long repositoryId, ArchiveFormat archiveFormat);
/// <summary> /// <summary>
/// Get an archive of a given repository's contents, using a specific format and reference /// Get an archive of a given repository's contents, using a specific format and reference
@@ -86,7 +86,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param> /// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
/// <param name="reference">A valid Git reference.</param> /// <param name="reference">A valid Git reference.</param>
IObservable<byte[]> GetArchive(int repositoryId, ArchiveFormat archiveFormat, string reference); IObservable<byte[]> GetArchive(long repositoryId, ArchiveFormat archiveFormat, string reference);
/// <summary> /// <summary>
/// Get an archive of a given repository's contents, in a specific format /// Get an archive of a given repository's contents, in a specific format
@@ -107,7 +107,7 @@ namespace Octokit.Reactive
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param> /// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
/// <param name="reference">A valid Git reference.</param> /// <param name="reference">A valid Git reference.</param>
/// <param name="timeout"> Time span until timeout </param> /// <param name="timeout"> Time span until timeout </param>
IObservable<byte[]> GetArchive(int repositoryId, ArchiveFormat archiveFormat, string reference, TimeSpan timeout); IObservable<byte[]> GetArchive(long repositoryId, ArchiveFormat archiveFormat, string reference, TimeSpan timeout);
/// <summary> /// <summary>
/// Returns the contents of a file or directory in a repository. /// Returns the contents of a file or directory in a repository.
@@ -128,7 +128,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="path">The content path</param> /// <param name="path">The content path</param>
IObservable<RepositoryContent> GetAllContents(int repositoryId, string path); IObservable<RepositoryContent> GetAllContents(long repositoryId, string path);
/// <summary> /// <summary>
/// Returns the contents of the root directory in a repository. /// Returns the contents of the root directory in a repository.
@@ -141,7 +141,7 @@ namespace Octokit.Reactive
/// Returns the contents of the root directory in a repository. /// Returns the contents of the root directory in a repository.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<RepositoryContent> GetAllContents(int repositoryId); IObservable<RepositoryContent> GetAllContents(long repositoryId);
/// <summary> /// <summary>
/// Returns the contents of a file or directory in a repository. /// Returns the contents of a file or directory in a repository.
@@ -166,7 +166,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The name of the commit/branch/tag. Default: the repositorys default branch (usually master)</param> /// <param name="reference">The name of the commit/branch/tag. Default: the repositorys default branch (usually master)</param>
/// <param name="path">The content path</param> /// <param name="path">The content path</param>
IObservable<RepositoryContent> GetAllContentsByRef(int repositoryId, string reference, string path); IObservable<RepositoryContent> GetAllContentsByRef(long repositoryId, string reference, string path);
/// <summary> /// <summary>
/// Returns the contents of the home directory in a repository. /// Returns the contents of the home directory in a repository.
@@ -181,7 +181,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The name of the commit/branch/tag. Default: the repositorys default branch (usually master)</param> /// <param name="reference">The name of the commit/branch/tag. Default: the repositorys default branch (usually master)</param>
IObservable<RepositoryContent> GetAllContentsByRef(int repositoryId, string reference); IObservable<RepositoryContent> GetAllContentsByRef(long repositoryId, string reference);
/// <summary> /// <summary>
/// Creates a commit that creates a new file in a repository. /// Creates a commit that creates a new file in a repository.
@@ -198,7 +198,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="path">The path to the file</param> /// <param name="path">The path to the file</param>
/// <param name="request">Information about the file to create</param> /// <param name="request">Information about the file to create</param>
IObservable<RepositoryContentChangeSet> CreateFile(int repositoryId, string path, CreateFileRequest request); IObservable<RepositoryContentChangeSet> CreateFile(long repositoryId, string path, CreateFileRequest request);
/// <summary> /// <summary>
/// Creates a commit that updates the contents of a file in a repository. /// Creates a commit that updates the contents of a file in a repository.
@@ -215,7 +215,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="path">The path to the file</param> /// <param name="path">The path to the file</param>
/// <param name="request">Information about the file to update</param> /// <param name="request">Information about the file to update</param>
IObservable<RepositoryContentChangeSet> UpdateFile(int repositoryId, string path, UpdateFileRequest request); IObservable<RepositoryContentChangeSet> UpdateFile(long repositoryId, string path, UpdateFileRequest request);
/// <summary> /// <summary>
/// Creates a commit that deletes a file in a repository. /// Creates a commit that deletes a file in a repository.
@@ -232,6 +232,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="path">The path to the file</param> /// <param name="path">The path to the file</param>
/// <param name="request">Information about the file to delete</param> /// <param name="request">Information about the file to delete</param>
IObservable<Unit> DeleteFile(int repositoryId, string path, DeleteFileRequest request); IObservable<Unit> DeleteFile(long repositoryId, string path, DeleteFileRequest request);
} }
} }

View File

@@ -33,7 +33,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="number">The id of the deploy key.</param> /// <param name="number">The id of the deploy key.</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
IObservable<DeployKey> Get(int repositoryId, int number); IObservable<DeployKey> Get(long repositoryId, int number);
/// <summary> /// <summary>
/// Get all deploy keys for a repository. /// Get all deploy keys for a repository.
@@ -52,7 +52,7 @@ namespace Octokit.Reactive
/// See the <a href="https://developer.github.com/v3/repos/keys/#list"> API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/keys/#list"> API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
IObservable<DeployKey> GetAll(int repositoryId); IObservable<DeployKey> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Get all deploy keys for a repository. /// Get all deploy keys for a repository.
@@ -73,7 +73,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <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<DeployKey> GetAll(int repositoryId, ApiOptions options); IObservable<DeployKey> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Creates a new deploy key for a repository. /// Creates a new deploy key for a repository.
@@ -94,7 +94,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="newDeployKey">The deploy key to create for the repository.</param> /// <param name="newDeployKey">The deploy key to create for the repository.</param>
IObservable<DeployKey> Create(int repositoryId, NewDeployKey newDeployKey); IObservable<DeployKey> Create(long repositoryId, NewDeployKey newDeployKey);
/// <summary> /// <summary>
/// Deletes a deploy key from a repository. /// Deletes a deploy key from a repository.
@@ -115,6 +115,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="number">The id of the deploy key to delete.</param> /// <param name="number">The id of the deploy key to delete.</param>
IObservable<Unit> Delete(int repositoryId, int number); IObservable<Unit> Delete(long repositoryId, int number);
} }
} }

View File

@@ -27,7 +27,7 @@ namespace Octokit.Reactive
/// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information. /// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<Repository> GetAll(int repositoryId); IObservable<Repository> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets the list of forks defined for a repository /// Gets the list of forks defined for a repository
@@ -48,7 +48,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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<Repository> GetAll(int repositoryId, ApiOptions options); IObservable<Repository> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets the list of forks defined for a repository /// Gets the list of forks defined for a repository
@@ -69,7 +69,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to request and filter a list of repository forks</param> /// <param name="request">Used to request and filter a list of repository forks</param>
IObservable<Repository> GetAll(int repositoryId, RepositoryForksListRequest request); IObservable<Repository> GetAll(long repositoryId, RepositoryForksListRequest request);
/// <summary> /// <summary>
/// Gets the list of forks defined for a repository /// Gets the list of forks defined for a repository
@@ -92,7 +92,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to request and filter a list of repository forks</param> /// <param name="request">Used to request and filter a list of repository forks</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
IObservable<Repository> GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options); IObservable<Repository> GetAll(long repositoryId, RepositoryForksListRequest request, ApiOptions options);
/// <summary> /// <summary>
/// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization. /// Creates a fork for a repository. Specify organization in the fork parameter to create for an organization.
@@ -113,6 +113,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="fork">Used to fork a repository</param> /// <param name="fork">Used to fork a repository</param>
IObservable<Repository> Create(int repositoryId, NewRepositoryFork fork); IObservable<Repository> Create(long repositoryId, NewRepositoryFork fork);
} }
} }

View File

@@ -25,7 +25,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
IObservable<RepositoryHook> GetAll(int repositoryId); IObservable<RepositoryHook> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets the list of hooks defined for a repository /// Gets the list of hooks defined for a repository
@@ -42,7 +42,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
IObservable<RepositoryHook> GetAll(int repositoryId, ApiOptions options); IObservable<RepositoryHook> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets a single hook by Id /// Gets a single hook by Id
@@ -61,7 +61,7 @@ namespace Octokit.Reactive
/// <param name="hookId">The repository's hook id</param> /// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")] [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")]
IObservable<RepositoryHook> Get(int repositoryId, int hookId); IObservable<RepositoryHook> Get(long repositoryId, int hookId);
/// <summary> /// <summary>
/// Creates a hook for a repository /// Creates a hook for a repository
@@ -78,7 +78,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="hook">The hook's parameters</param> /// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
IObservable<RepositoryHook> Create(int repositoryId, NewRepositoryHook hook); IObservable<RepositoryHook> Create(long repositoryId, NewRepositoryHook hook);
/// <summary> /// <summary>
/// Edits a hook for a repository /// Edits a hook for a repository
@@ -97,7 +97,7 @@ namespace Octokit.Reactive
/// <param name="hookId">The repository's hook id</param> /// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param> /// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
IObservable<RepositoryHook> Edit(int repositoryId, int hookId, EditRepositoryHook hook); IObservable<RepositoryHook> Edit(long repositoryId, int hookId, EditRepositoryHook hook);
/// <summary> /// <summary>
/// Tests a hook for a repository /// Tests a hook for a repository
@@ -118,7 +118,7 @@ namespace Octokit.Reactive
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information. /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks> /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
IObservable<Unit> Test(int repositoryId, int hookId); IObservable<Unit> Test(long repositoryId, int hookId);
/// <summary> /// <summary>
/// This will trigger a ping event to be sent to the hook. /// This will trigger a ping event to be sent to the hook.
@@ -135,7 +135,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="hookId">The repository's hook id</param> /// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
IObservable<Unit> Ping(int repositoryId, int hookId); IObservable<Unit> Ping(long repositoryId, int hookId);
/// <summary> /// <summary>
/// Deletes a hook for a repository /// Deletes a hook for a repository
@@ -152,6 +152,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="hookId">The repository's hook id</param> /// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
IObservable<Unit> Delete(int repositoryId, int hookId); IObservable<Unit> Delete(long repositoryId, int hookId);
} }
} }

View File

@@ -32,7 +32,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The id of the repository.</param> /// <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>
IObservable<bool> Delete(int repositoryId, int invitationId); IObservable<bool> Delete(long repositoryId, int invitationId);
/// <summary> /// <summary>
/// Gets all invitations for the current user. /// Gets all invitations for the current user.
@@ -50,7 +50,7 @@ namespace Octokit.Reactive
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information. /// 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="repositoryId">The id of the repository</param>
IObservable<RepositoryInvitation> GetAllForRepository(int repositoryId); IObservable<RepositoryInvitation> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Updates a repository invitation. /// Updates a repository invitation.
@@ -62,6 +62,6 @@ namespace Octokit.Reactive
/// <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> /// <param name="permissions">The permission to set.</param>
/// <returns><see cref="RepositoryInvitation"/></returns> /// <returns><see cref="RepositoryInvitation"/></returns>
IObservable<RepositoryInvitation> Edit(int repositoryId, int invitationId, InvitationUpdate permissions); IObservable<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions);
} }
} }

View File

@@ -30,7 +30,7 @@ namespace Octokit.Reactive
/// See the <a href="https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site">API documentation</a> for more information.
/// </remarks> /// </remarks>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
IObservable<Page> Get(int repositoryId); IObservable<Page> Get(long repositoryId);
/// <summary> /// <summary>
/// Gets all build metadata for a given repository /// Gets all build metadata for a given repository
@@ -49,7 +49,7 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
/// </remarks> /// </remarks>
IObservable<PagesBuild> GetAll(int repositoryId); IObservable<PagesBuild> GetAll(long repositoryId);
/// <summary> /// <summary>
/// Gets all build metadata for a given repository /// Gets all build metadata for a given repository
@@ -70,7 +70,7 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
/// </remarks> /// </remarks>
IObservable<PagesBuild> GetAll(int repositoryId, ApiOptions options); IObservable<PagesBuild> GetAll(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Gets the build metadata for the last build for a given repository /// Gets the build metadata for the last build for a given repository
@@ -89,7 +89,7 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-latest-pages-build">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#list-latest-pages-build">API documentation</a> for more information.
/// </remarks> /// </remarks>
IObservable<PagesBuild> GetLatest(int repositoryId); IObservable<PagesBuild> GetLatest(long repositoryId);
/// <summary> /// <summary>
/// Requests your site be built from the latest revision on the default branch for a given repository /// Requests your site be built from the latest revision on the default branch for a given repository
@@ -108,6 +108,6 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#request-a-page-build">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#request-a-page-build">API documentation</a> for more information.
/// </remarks> /// </remarks>
IObservable<PagesBuild> RequestPageBuild(int repositoryId); IObservable<PagesBuild> RequestPageBuild(long repositoryId);
} }
} }

View File

@@ -23,7 +23,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
IObservable<User> GetAllStargazers(int repositoryId); IObservable<User> GetAllStargazers(long repositoryId);
/// <summary> /// <summary>
/// Retrieves all of the stargazers for the passed repository /// Retrieves all of the stargazers for the passed repository
@@ -40,7 +40,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
IObservable<User> GetAllStargazers(int repositoryId, ApiOptions options); IObservable<User> GetAllStargazers(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Retrieves all of the stargazers for the passed repository with star creation timestamps. /// Retrieves all of the stargazers for the passed repository with star creation timestamps.
@@ -55,7 +55,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
IObservable<UserStar> GetAllStargazersWithTimestamps(int repositoryId); IObservable<UserStar> GetAllStargazersWithTimestamps(long repositoryId);
/// <summary> /// <summary>
/// Retrieves all of the stargazers for the passed repository with star creation timestamps. /// Retrieves all of the stargazers for the passed repository with star creation timestamps.
@@ -72,7 +72,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
IObservable<UserStar> GetAllStargazersWithTimestamps(int repositoryId, ApiOptions options); IObservable<UserStar> GetAllStargazersWithTimestamps(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Retrieves all of the starred <see cref="Repository"/>(ies) for the current user /// Retrieves all of the starred <see cref="Repository"/>(ies) for the current user

View File

@@ -22,7 +22,7 @@ namespace Octokit.Reactive
/// Returns a list of <see cref="Contributor"/> for the given repository /// Returns a list of <see cref="Contributor"/> for the given repository
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<IEnumerable<Contributor>> GetContributors(int repositoryId); IObservable<IEnumerable<Contributor>> GetContributors(long repositoryId);
/// <summary> /// <summary>
/// Returns the last year of commit activity grouped by week. /// Returns the last year of commit activity grouped by week.
@@ -35,7 +35,7 @@ namespace Octokit.Reactive
/// Returns the last year of commit activity grouped by week. /// Returns the last year of commit activity grouped by week.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<CommitActivity> GetCommitActivity(int repositoryId); IObservable<CommitActivity> GetCommitActivity(long repositoryId);
/// <summary> /// <summary>
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository. /// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
@@ -48,7 +48,7 @@ namespace Octokit.Reactive
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository. /// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<CodeFrequency> GetCodeFrequency(int repositoryId); IObservable<CodeFrequency> GetCodeFrequency(long repositoryId);
/// <summary> /// <summary>
/// Returns the total commit counts for the owner and total commit counts in total. /// Returns the total commit counts for the owner and total commit counts in total.
@@ -61,7 +61,7 @@ namespace Octokit.Reactive
/// Returns the total commit counts for the owner and total commit counts in total. /// Returns the total commit counts for the owner and total commit counts in total.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<Participation> GetParticipation(int repositoryId); IObservable<Participation> GetParticipation(long repositoryId);
/// <summary> /// <summary>
/// Returns a list of the number of commits per hour in each day /// Returns a list of the number of commits per hour in each day
@@ -74,6 +74,6 @@ namespace Octokit.Reactive
/// Returns a list of the number of commits per hour in each day /// Returns a list of the number of commits per hour in each day
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
IObservable<PunchCard> GetPunchCard(int repositoryId); IObservable<PunchCard> GetPunchCard(long repositoryId);
} }
} }

View File

@@ -34,7 +34,7 @@ namespace Octokit.Reactive
/// <param name="reference">Tha sha reference of the tag</param> /// <param name="reference">Tha sha reference of the tag</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")] Justification = "Method makes a network request")]
IObservable<GitTag> Get(int repositoryId, string reference); IObservable<GitTag> Get(long repositoryId, string reference);
/// <summary> /// <summary>
/// Create a tag for a given repository /// Create a tag for a given repository
@@ -55,6 +55,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="tag">The tag to create</param> /// <param name="tag">The tag to create</param>
IObservable<GitTag> Create(int repositoryId, NewTag tag); IObservable<GitTag> Create(long repositoryId, NewTag tag);
} }
} }

View File

@@ -31,7 +31,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The SHA that references the tree</param> /// <param name="reference">The SHA that references the tree</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
IObservable<TreeResponse> Get(int repositoryId, string reference); IObservable<TreeResponse> Get(long repositoryId, string reference);
/// <summary> /// <summary>
/// Gets a Tree Response for a given SHA. /// Gets a Tree Response for a given SHA.
@@ -52,7 +52,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The SHA that references the tree</param> /// <param name="reference">The SHA that references the tree</param>
IObservable<TreeResponse> GetRecursive(int repositoryId, string reference); IObservable<TreeResponse> GetRecursive(long repositoryId, string reference);
/// <summary> /// <summary>
/// Creates a new Tree in the specified repo /// Creates a new Tree in the specified repo
@@ -73,6 +73,6 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newTree">The value of the new tree</param> /// <param name="newTree">The value of the new tree</param>
IObservable<TreeResponse> Create(int repositoryId, NewTree newTree); IObservable<TreeResponse> Create(long repositoryId, NewTree newTree);
} }
} }

View File

@@ -24,7 +24,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
IObservable<User> GetAllWatchers(int repositoryId); IObservable<User> GetAllWatchers(long repositoryId);
/// <summary> /// <summary>
/// Retrieves all of the watchers for the passed repository /// Retrieves all of the watchers for the passed repository
@@ -41,7 +41,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="options">Options for changing the API's response.</param> /// <param name="options">Options for changing the API's response.</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
IObservable<User> GetAllWatchers(int repositoryId, ApiOptions options); IObservable<User> GetAllWatchers(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Retrieves all of the watched <see cref="Repository"/>(ies) for the current user /// Retrieves all of the watched <see cref="Repository"/>(ies) for the current user
@@ -85,7 +85,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
IObservable<bool> CheckWatched(int repositoryId); IObservable<bool> CheckWatched(long repositoryId);
/// <summary> /// <summary>
/// Stars a repository for the authenticated user. /// Stars a repository for the authenticated user.
@@ -100,7 +100,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newSubscription">A <see cref="NewSubscription"/> instance describing the new subscription to create</param> /// <param name="newSubscription">A <see cref="NewSubscription"/> instance describing the new subscription to create</param>
IObservable<Subscription> WatchRepo(int repositoryId, NewSubscription newSubscription); IObservable<Subscription> WatchRepo(long repositoryId, NewSubscription newSubscription);
/// <summary> /// <summary>
/// Unstars a repository for the authenticated user. /// Unstars a repository for the authenticated user.
@@ -117,6 +117,6 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Unwatch", [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Unwatch",
Justification = "Unwatch is consistent with the GitHub website")] Justification = "Unwatch is consistent with the GitHub website")]
IObservable<bool> UnwatchRepo(int repositoryId); IObservable<bool> UnwatchRepo(long repositoryId);
} }
} }

View File

@@ -40,7 +40,7 @@ namespace Octokit.Reactive
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<User> GetAllForRepository(int repositoryId) public IObservable<User> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -65,7 +65,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="options">The options to change API's behaviour.</param> /// <param name="options">The options to change API's behaviour.</param>
public IObservable<User> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<User> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -92,7 +92,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="assignee">Username of the prospective assignee</param> /// <param name="assignee">Username of the prospective assignee</param>
public IObservable<bool> CheckAssignee(int repositoryId, string assignee) public IObservable<bool> CheckAssignee(long repositoryId, string assignee)
{ {
Ensure.ArgumentNotNullOrEmptyString(assignee, "assignee"); Ensure.ArgumentNotNullOrEmptyString(assignee, "assignee");

View File

@@ -46,7 +46,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The SHA of the blob</param> /// <param name="reference">The SHA of the blob</param>
public IObservable<Blob> Get(int repositoryId, string reference) public IObservable<Blob> Get(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newBlob">The new Blob</param> /// <param name="newBlob">The new Blob</param>
public IObservable<BlobReference> Create(int repositoryId, NewBlob newBlob) public IObservable<BlobReference> Create(long repositoryId, NewBlob newBlob)
{ {
Ensure.ArgumentNotNull(newBlob, "newBlob"); Ensure.ArgumentNotNull(newBlob, "newBlob");

View File

@@ -49,7 +49,7 @@ namespace Octokit.Reactive
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create </param> /// <param name="reaction">The reaction to create </param>
/// <returns></returns> /// <returns></returns>
public IObservable<Reaction> Create(int repositoryId, int number, NewReaction reaction) public IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction)
{ {
Ensure.ArgumentNotNull(reaction, "reaction"); Ensure.ArgumentNotNull(reaction, "reaction");
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The owner of the repository</param> /// <param name="repositoryId">The owner of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Reaction> GetAll(int repositoryId, int number) public IObservable<Reaction> GetAll(long repositoryId, int number)
{ {
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.CommitCommentReactions(repositoryId, number), null, AcceptHeaders.ReactionsPreview); return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.CommitCommentReactions(repositoryId, number), null, AcceptHeaders.ReactionsPreview);
} }

View File

@@ -47,7 +47,7 @@ namespace Octokit.Reactive
/// <remarks>Only users with pull access can see this.</remarks> /// <remarks>Only users with pull access can see this.</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
public IObservable<CommitStatus> GetAll(int repositoryId, string reference) public IObservable<CommitStatus> GetAll(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -81,7 +81,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<CommitStatus> GetAll(int repositoryId, string reference, ApiOptions options) public IObservable<CommitStatus> GetAll(long repositoryId, string reference, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -113,7 +113,7 @@ namespace Octokit.Reactive
/// <remarks>Only users with pull access can see this.</remarks> /// <remarks>Only users with pull access can see this.</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
public IObservable<CombinedCommitStatus> GetCombined(int repositoryId, string reference) public IObservable<CombinedCommitStatus> GetCombined(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -143,7 +143,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
/// <param name="newCommitStatus">The commit status to create</param> /// <param name="newCommitStatus">The commit status to create</param>
public IObservable<CommitStatus> Create(int repositoryId, string reference, NewCommitStatus newCommitStatus) public IObservable<CommitStatus> Create(long repositoryId, string reference, NewCommitStatus newCommitStatus)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
Ensure.ArgumentNotNull(newCommitStatus, "newCommitStatus"); Ensure.ArgumentNotNull(newCommitStatus, "newCommitStatus");

View File

@@ -46,7 +46,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">Tha sha reference of the commit</param> /// <param name="reference">Tha sha reference of the commit</param>
public IObservable<Commit> Get(int repositoryId, string reference) public IObservable<Commit> Get(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="commit">The commit to create</param> /// <param name="commit">The commit to create</param>
public IObservable<Commit> Create(int repositoryId, NewCommit commit) public IObservable<Commit> Create(long repositoryId, NewCommit commit)
{ {
Ensure.ArgumentNotNull(commit, "commit"); Ensure.ArgumentNotNull(commit, "commit");

View File

@@ -51,7 +51,7 @@ namespace Octokit.Reactive.Clients
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
public IObservable<DeploymentStatus> GetAll(int repositoryId, int deploymentId) public IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId)
{ {
return GetAll(repositoryId, deploymentId, ApiOptions.None); return GetAll(repositoryId, deploymentId, ApiOptions.None);
} }
@@ -87,7 +87,7 @@ namespace Octokit.Reactive.Clients
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<DeploymentStatus> GetAll(int repositoryId, int deploymentId, ApiOptions options) public IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -125,7 +125,7 @@ namespace Octokit.Reactive.Clients
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
/// <param name="newDeploymentStatus">The new deployment status to create.</param> /// <param name="newDeploymentStatus">The new deployment status to create.</param>
public IObservable<DeploymentStatus> Create(int repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus) public IObservable<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus)
{ {
Ensure.ArgumentNotNull(newDeploymentStatus, "newDeploymentStatus"); Ensure.ArgumentNotNull(newDeploymentStatus, "newDeploymentStatus");

View File

@@ -51,7 +51,7 @@ namespace Octokit.Reactive.Clients
/// http://developer.github.com/v3/repos/deployments/#list-deployments /// http://developer.github.com/v3/repos/deployments/#list-deployments
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<Deployment> GetAll(int repositoryId) public IObservable<Deployment> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -85,7 +85,7 @@ namespace Octokit.Reactive.Clients
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<Deployment> GetAll(int repositoryId, ApiOptions options) public IObservable<Deployment> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -119,7 +119,7 @@ namespace Octokit.Reactive.Clients
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newDeployment">A <see cref="NewDeployment"/> instance describing the new deployment to create</param> /// <param name="newDeployment">A <see cref="NewDeployment"/> instance describing the new deployment to create</param>
public IObservable<Deployment> Create(int repositoryId, NewDeployment newDeployment) public IObservable<Deployment> Create(long repositoryId, NewDeployment newDeployment)
{ {
Ensure.ArgumentNotNull(newDeployment, "newDeployment"); Ensure.ArgumentNotNull(newDeployment, "newDeployment");

View File

@@ -68,7 +68,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository /// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<Activity> GetAllForRepository(int repositoryId) public IObservable<Activity> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -99,7 +99,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<Activity> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<Activity> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -129,7 +129,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository /// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<Activity> GetAllIssuesForRepository(int repositoryId) public IObservable<Activity> GetAllIssuesForRepository(long repositoryId)
{ {
return GetAllIssuesForRepository(repositoryId, ApiOptions.None); return GetAllIssuesForRepository(repositoryId, ApiOptions.None);
} }
@@ -160,7 +160,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<Activity> GetAllIssuesForRepository(int repositoryId, ApiOptions options) public IObservable<Activity> GetAllIssuesForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");

View File

@@ -47,7 +47,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create </param> /// <param name="reaction">The reaction to create </param>
public IObservable<Reaction> Create(int repositoryId, int number, NewReaction reaction) public IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction)
{ {
Ensure.ArgumentNotNull(reaction, "reaction"); Ensure.ArgumentNotNull(reaction, "reaction");
@@ -75,7 +75,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks> /// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
public IObservable<Reaction> GetAll(int repositoryId, int number) public IObservable<Reaction> GetAll(long repositoryId, int number)
{ {
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueCommentReactions(repositoryId, number), null, AcceptHeaders.ReactionsPreview); return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueCommentReactions(repositoryId, number), null, AcceptHeaders.ReactionsPreview);
} }

View File

@@ -45,7 +45,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/comments/#get-a-single-comment</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#get-a-single-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The issue comment id</param> /// <param name="id">The issue comment id</param>
public IObservable<IssueComment> Get(int repositoryId, int id) public IObservable<IssueComment> Get(long repositoryId, int id)
{ {
return _client.Get(repositoryId, id).ToObservable(); return _client.Get(repositoryId, id).ToObservable();
} }
@@ -69,7 +69,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<IssueComment> GetAllForRepository(int repositoryId) public IObservable<IssueComment> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -96,7 +96,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<IssueComment> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<IssueComment> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -124,7 +124,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
public IObservable<IssueComment> GetAllForIssue(int repositoryId, int number) public IObservable<IssueComment> GetAllForIssue(long repositoryId, int number)
{ {
return GetAllForIssue(repositoryId, number, ApiOptions.None); return GetAllForIssue(repositoryId, number, ApiOptions.None);
} }
@@ -153,7 +153,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<IssueComment> GetAllForIssue(int repositoryId, int number, ApiOptions options) public IObservable<IssueComment> GetAllForIssue(long repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -184,7 +184,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="newComment">The text of the new comment</param> /// <param name="newComment">The text of the new comment</param>
public IObservable<IssueComment> Create(int repositoryId, int number, string newComment) public IObservable<IssueComment> Create(long repositoryId, int number, string newComment)
{ {
Ensure.ArgumentNotNull(newComment, "newComment"); Ensure.ArgumentNotNull(newComment, "newComment");
@@ -215,7 +215,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The comment id</param> /// <param name="id">The comment id</param>
/// <param name="commentUpdate">The modified comment</param> /// <param name="commentUpdate">The modified comment</param>
public IObservable<IssueComment> Update(int repositoryId, int id, string commentUpdate) public IObservable<IssueComment> Update(long repositoryId, int id, string commentUpdate)
{ {
Ensure.ArgumentNotNull(commentUpdate, "commentUpdate"); Ensure.ArgumentNotNull(commentUpdate, "commentUpdate");
@@ -243,7 +243,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/comments/#delete-a-comment</remarks> /// <remarks>http://developer.github.com/v3/issues/comments/#delete-a-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The comment id</param> /// <param name="id">The comment id</param>
public IObservable<Unit> Delete(int repositoryId, int id) public IObservable<Unit> Delete(long repositoryId, int id)
{ {
return _client.Delete(repositoryId, id).ToObservable(); return _client.Delete(repositoryId, id).ToObservable();
} }

View File

@@ -44,7 +44,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks> /// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue id</param> /// <param name="number">The issue id</param>
public IObservable<Reaction> GetAll(int repositoryId, int number) public IObservable<Reaction> GetAll(long repositoryId, int number)
{ {
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueReactions(repositoryId, number), null, AcceptHeaders.ReactionsPreview); return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueReactions(repositoryId, number), null, AcceptHeaders.ReactionsPreview);
} }
@@ -73,7 +73,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue id</param> /// <param name="number">The issue id</param>
/// <param name="reaction">The reaction to create </param> /// <param name="reaction">The reaction to create </param>
public IObservable<Reaction> Create(int repositoryId, int number, NewReaction reaction) public IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction)
{ {
Ensure.ArgumentNotNull(reaction, "reaction"); Ensure.ArgumentNotNull(reaction, "reaction");

View File

@@ -64,7 +64,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
public IObservable<TimelineEventInfo> GetAllForIssue(int repositoryId, int number) public IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int number)
{ {
return GetAllForIssue(repositoryId, number, ApiOptions.None); return GetAllForIssue(repositoryId, number, ApiOptions.None);
} }
@@ -78,7 +78,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<TimelineEventInfo> GetAllForIssue(int repositoryId, int number, ApiOptions options) public IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");

View File

@@ -87,7 +87,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
public IObservable<Issue> Get(int repositoryId, int number) public IObservable<Issue> Get(long repositoryId, int number)
{ {
return _client.Get(repositoryId, number).ToObservable(); return _client.Get(repositoryId, number).ToObservable();
} }
@@ -299,7 +299,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/issues/#list-issues-for-a-repository /// http://developer.github.com/v3/issues/#list-issues-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<Issue> GetAllForRepository(int repositoryId) public IObservable<Issue> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -330,7 +330,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<Issue> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<Issue> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -363,7 +363,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="request">Used to filter and sort the list of issues returned</param>
public IObservable<Issue> GetAllForRepository(int repositoryId, RepositoryIssueRequest request) public IObservable<Issue> GetAllForRepository(long repositoryId, RepositoryIssueRequest request)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -399,7 +399,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of issues returned</param> /// <param name="request">Used to filter and sort the list of issues returned</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<Issue> GetAllForRepository(int repositoryId, RepositoryIssueRequest request, ApiOptions options) public IObservable<Issue> GetAllForRepository(long repositoryId, RepositoryIssueRequest request, ApiOptions options)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -431,7 +431,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/issues/#create-an-issue</remarks> /// <remarks>http://developer.github.com/v3/issues/#create-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newIssue">A <see cref="NewIssue"/> instance describing the new issue to create</param> /// <param name="newIssue">A <see cref="NewIssue"/> instance describing the new issue to create</param>
public IObservable<Issue> Create(int repositoryId, NewIssue newIssue) public IObservable<Issue> Create(long repositoryId, NewIssue newIssue)
{ {
Ensure.ArgumentNotNull(newIssue, "newIssue"); Ensure.ArgumentNotNull(newIssue, "newIssue");
@@ -466,7 +466,7 @@ namespace Octokit.Reactive
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
/// <param name="issueUpdate">An <see cref="IssueUpdate"/> instance describing the changes to make to the issue /// <param name="issueUpdate">An <see cref="IssueUpdate"/> instance describing the changes to make to the issue
/// </param> /// </param>
public IObservable<Issue> Update(int repositoryId, int number, IssueUpdate issueUpdate) public IObservable<Issue> Update(long repositoryId, int number, IssueUpdate issueUpdate)
{ {
Ensure.ArgumentNotNull(issueUpdate, "issueUpdate"); Ensure.ArgumentNotNull(issueUpdate, "issueUpdate");
@@ -494,7 +494,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks> /// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
public IObservable<Unit> Lock(int repositoryId, int number) public IObservable<Unit> Lock(long repositoryId, int number)
{ {
return _client.Lock(repositoryId, number).ToObservable(); return _client.Lock(repositoryId, number).ToObservable();
} }
@@ -520,7 +520,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks> /// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
public IObservable<Unit> Unlock(int repositoryId, int number) public IObservable<Unit> Unlock(long repositoryId, int number)
{ {
return _client.Unlock(repositoryId, number).ToObservable(); return _client.Unlock(repositoryId, number).ToObservable();
} }

View File

@@ -48,7 +48,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
public IObservable<EventInfo> GetAllForIssue(int repositoryId, int number) public IObservable<EventInfo> GetAllForIssue(long repositoryId, int number)
{ {
return GetAllForIssue(repositoryId, number, ApiOptions.None); return GetAllForIssue(repositoryId, number, ApiOptions.None);
} }
@@ -81,7 +81,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The issue number</param> /// <param name="number">The issue number</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<EventInfo> GetAllForIssue(int repositoryId, int number, ApiOptions options) public IObservable<EventInfo> GetAllForIssue(long repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -111,7 +111,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/issues/events/#list-events-for-a-repository /// http://developer.github.com/v3/issues/events/#list-events-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<IssueEvent> GetAllForRepository(int repositoryId) public IObservable<IssueEvent> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -142,7 +142,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<IssueEvent> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<IssueEvent> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -174,7 +174,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The event id</param> /// <param name="number">The event id</param>
public IObservable<IssueEvent> Get(int repositoryId, int number) public IObservable<IssueEvent> Get(long repositoryId, int number)
{ {
return _client.Get(repositoryId, number).ToObservable(); return _client.Get(repositoryId, number).ToObservable();
} }

View File

@@ -50,7 +50,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
public IObservable<Label> GetAllForIssue(int repositoryId, int number) public IObservable<Label> GetAllForIssue(long repositoryId, int number)
{ {
return GetAllForIssue(repositoryId, number, ApiOptions.None); return GetAllForIssue(repositoryId, number, ApiOptions.None);
} }
@@ -83,7 +83,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<Label> GetAllForIssue(int repositoryId, int number, ApiOptions options) public IObservable<Label> GetAllForIssue(long repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -113,7 +113,7 @@ namespace Octokit.Reactive
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information. /// See the <a href="http://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository">API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<Label> GetAllForRepository(int repositoryId) public IObservable<Label> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -144,7 +144,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<Label> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<Label> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -176,7 +176,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
public IObservable<Label> GetAllForMilestone(int repositoryId, int number) public IObservable<Label> GetAllForMilestone(long repositoryId, int number)
{ {
return GetAllForMilestone(repositoryId, number, ApiOptions.None); return GetAllForMilestone(repositoryId, number, ApiOptions.None);
} }
@@ -209,7 +209,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the milestone</param> /// <param name="number">The number of the milestone</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<Label> GetAllForMilestone(int repositoryId, int number, ApiOptions options) public IObservable<Label> GetAllForMilestone(long repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -242,7 +242,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
public IObservable<Label> Get(int repositoryId, string labelName) public IObservable<Label> Get(long repositoryId, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -275,7 +275,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
public IObservable<Unit> Delete(int repositoryId, string labelName) public IObservable<Unit> Delete(long repositoryId, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -308,7 +308,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newLabel">The data for the label to be created</param> /// <param name="newLabel">The data for the label to be created</param>
public IObservable<Label> Create(int repositoryId, NewLabel newLabel) public IObservable<Label> Create(long repositoryId, NewLabel newLabel)
{ {
Ensure.ArgumentNotNull(newLabel, "newLabel"); Ensure.ArgumentNotNull(newLabel, "newLabel");
@@ -344,7 +344,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="labelName">The name of the label</param> /// <param name="labelName">The name of the label</param>
/// <param name="labelUpdate">The data for the label to be updated</param> /// <param name="labelUpdate">The data for the label to be updated</param>
public IObservable<Label> Update(int repositoryId, string labelName, LabelUpdate labelUpdate) public IObservable<Label> Update(long repositoryId, string labelName, LabelUpdate labelUpdate)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
Ensure.ArgumentNotNull(labelUpdate, "labelUpdate"); Ensure.ArgumentNotNull(labelUpdate, "labelUpdate");
@@ -382,7 +382,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to add</param> /// <param name="labels">The names of the labels to add</param>
public IObservable<Label> AddToIssue(int repositoryId, int number, string[] labels) public IObservable<Label> AddToIssue(long repositoryId, int number, string[] labels)
{ {
Ensure.ArgumentNotNull(labels, "labels"); Ensure.ArgumentNotNull(labels, "labels");
@@ -419,7 +419,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param> /// <param name="labelName">The name of the label to remove</param>
public IObservable<Unit> RemoveFromIssue(int repositoryId, int number, string labelName) public IObservable<Unit> RemoveFromIssue(long repositoryId, int number, string labelName)
{ {
Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName"); Ensure.ArgumentNotNullOrEmptyString(labelName, "labelName");
@@ -456,7 +456,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
/// <param name="labels">The names of the labels to set</param> /// <param name="labels">The names of the labels to set</param>
public IObservable<Label> ReplaceAllForIssue(int repositoryId, int number, string[] labels) public IObservable<Label> ReplaceAllForIssue(long repositoryId, int number, string[] labels)
{ {
Ensure.ArgumentNotNull(labels, "labels"); Ensure.ArgumentNotNull(labels, "labels");
@@ -490,7 +490,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param> /// <param name="number">The number of the issue</param>
public IObservable<Unit> RemoveAllFromIssue(int repositoryId, int number) public IObservable<Unit> RemoveAllFromIssue(long repositoryId, int number)
{ {
return _client.RemoveAllFromIssue(repositoryId, number).ToObservable(); return _client.RemoveAllFromIssue(repositoryId, number).ToObservable();
} }

View File

@@ -41,7 +41,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="merge">The merge to create</param> /// <param name="merge">The merge to create</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Merge> Create(int repositoryId, NewMerge merge) public IObservable<Merge> Create(long repositoryId, NewMerge merge)
{ {
Ensure.ArgumentNotNull(merge, "merge"); Ensure.ArgumentNotNull(merge, "merge");

View File

@@ -46,7 +46,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/issues/milestones/#get-a-single-milestone /// http://developer.github.com/v3/issues/milestones/#get-a-single-milestone
/// </remarks> /// </remarks>
/// <returns></returns> /// <returns></returns>
public IObservable<Milestone> Get(int repositoryId, int number) public IObservable<Milestone> Get(long repositoryId, int number)
{ {
return _client.Get(repositoryId, number).ToObservable(); return _client.Get(repositoryId, number).ToObservable();
} }
@@ -76,7 +76,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Milestone> GetAllForRepository(int repositoryId) public IObservable<Milestone> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -109,7 +109,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <returns></returns> /// <returns></returns>
public IObservable<Milestone> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<Milestone> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -144,7 +144,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of Milestones returned</param> /// <param name="request">Used to filter and sort the list of Milestones returned</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Milestone> GetAllForRepository(int repositoryId, MilestoneRequest request) public IObservable<Milestone> GetAllForRepository(long repositoryId, MilestoneRequest request)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -183,7 +183,7 @@ namespace Octokit.Reactive
/// <param name="request">Used to filter and sort the list of Milestones returned</param> /// <param name="request">Used to filter and sort the list of Milestones returned</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Milestone> GetAllForRepository(int repositoryId, MilestoneRequest request, ApiOptions options) public IObservable<Milestone> GetAllForRepository(long repositoryId, MilestoneRequest request, ApiOptions options)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -218,7 +218,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newMilestone">A <see cref="NewMilestone"/> instance describing the new Milestone to create</param> /// <param name="newMilestone">A <see cref="NewMilestone"/> instance describing the new Milestone to create</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Milestone> Create(int repositoryId, NewMilestone newMilestone) public IObservable<Milestone> Create(long repositoryId, NewMilestone newMilestone)
{ {
Ensure.ArgumentNotNull(newMilestone, "newMilestone"); Ensure.ArgumentNotNull(newMilestone, "newMilestone");
@@ -255,7 +255,7 @@ namespace Octokit.Reactive
/// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone /// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone
/// </param> /// </param>
/// <returns></returns> /// <returns></returns>
public IObservable<Milestone> Update(int repositoryId, int number, MilestoneUpdate milestoneUpdate) public IObservable<Milestone> Update(long repositoryId, int number, MilestoneUpdate milestoneUpdate)
{ {
Ensure.ArgumentNotNull(milestoneUpdate, "milestoneUpdate"); Ensure.ArgumentNotNull(milestoneUpdate, "milestoneUpdate");
@@ -287,7 +287,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The milestone number</param> /// <param name="number">The milestone number</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Unit> Delete(int repositoryId, int number) public IObservable<Unit> Delete(long repositoryId, int number)
{ {
return _client.Delete(repositoryId, number).ToObservable(); return _client.Delete(repositoryId, number).ToObservable();
} }

View File

@@ -64,7 +64,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
public IObservable<Notification> GetAllForRepository(int repositoryId) public IObservable<Notification> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -91,7 +91,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository.</param> /// <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>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
public IObservable<Notification> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<Notification> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -146,7 +146,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="request">Specifies the parameters to filter notifications by</param> /// <param name="request">Specifies the parameters to filter notifications by</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
public IObservable<Notification> GetAllForRepository(int repositoryId, NotificationsRequest request) public IObservable<Notification> GetAllForRepository(long repositoryId, NotificationsRequest request)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -178,7 +178,7 @@ namespace Octokit.Reactive
/// <param name="request">Specifies the parameters to filter notifications by</param> /// <param name="request">Specifies the parameters to filter notifications by</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
public IObservable<Notification> GetAllForRepository(int repositoryId, NotificationsRequest request, ApiOptions options) public IObservable<Notification> GetAllForRepository(long repositoryId, NotificationsRequest request, ApiOptions options)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -226,7 +226,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <remarks>http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository</remarks>
public IObservable<Unit> MarkAsReadForRepository(int repositoryId) public IObservable<Unit> MarkAsReadForRepository(long repositoryId)
{ {
return _notificationsClient.MarkAsReadForRepository(repositoryId).ToObservable(); return _notificationsClient.MarkAsReadForRepository(repositoryId).ToObservable();
} }
@@ -253,7 +253,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="markAsReadRequest">The <see cref="MarkAsReadRequest"/> parameter which specifies which notifications to mark.</param> /// <param name="markAsReadRequest">The <see cref="MarkAsReadRequest"/> parameter which specifies which notifications to mark.</param>
/// <remarks>http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository</remarks>
public IObservable<Unit> MarkAsReadForRepository(int repositoryId, MarkAsReadRequest markAsReadRequest) public IObservable<Unit> MarkAsReadForRepository(long repositoryId, MarkAsReadRequest markAsReadRequest)
{ {
Ensure.ArgumentNotNull(markAsReadRequest, "markAsReadRequest"); Ensure.ArgumentNotNull(markAsReadRequest, "markAsReadRequest");

View File

@@ -44,7 +44,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks> /// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
public IObservable<Reaction> GetAll(int repositoryId, int number) public IObservable<Reaction> GetAll(long repositoryId, int number)
{ {
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.PullRequestReviewCommentReaction(repositoryId, number), null, AcceptHeaders.ReactionsPreview); return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.PullRequestReviewCommentReaction(repositoryId, number), null, AcceptHeaders.ReactionsPreview);
} }
@@ -73,7 +73,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The owner of the repository</param> /// <param name="repositoryId">The owner of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create</param> /// <param name="reaction">The reaction to create</param>
public IObservable<Reaction> Create(int repositoryId, int number, NewReaction reaction) public IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction)
{ {
Ensure.ArgumentNotNull(reaction, "reaction"); Ensure.ArgumentNotNull(reaction, "reaction");

View File

@@ -45,7 +45,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
public IObservable<PullRequestReviewComment> GetAll(int repositoryId, int number) public IObservable<PullRequestReviewComment> GetAll(long repositoryId, int number)
{ {
return GetAll(repositoryId, number, ApiOptions.None); return GetAll(repositoryId, number, ApiOptions.None);
} }
@@ -74,7 +74,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<PullRequestReviewComment> GetAll(int repositoryId, int number, ApiOptions options) public IObservable<PullRequestReviewComment> GetAll(long repositoryId, int number, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -100,7 +100,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<PullRequestReviewComment> GetAllForRepository(int repositoryId) public IObservable<PullRequestReviewComment> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, new PullRequestReviewCommentRequest(), ApiOptions.None); return GetAllForRepository(repositoryId, new PullRequestReviewCommentRequest(), ApiOptions.None);
} }
@@ -127,7 +127,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<PullRequestReviewComment> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<PullRequestReviewComment> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -156,7 +156,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">The sorting <see cref="PullRequestReviewCommentRequest">parameters</see></param> /// <param name="request">The sorting <see cref="PullRequestReviewCommentRequest">parameters</see></param>
public IObservable<PullRequestReviewComment> GetAllForRepository(int repositoryId, PullRequestReviewCommentRequest request) public IObservable<PullRequestReviewComment> GetAllForRepository(long repositoryId, PullRequestReviewCommentRequest request)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -189,7 +189,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">The sorting <see cref="PullRequestReviewCommentRequest">parameters</see></param> /// <param name="request">The sorting <see cref="PullRequestReviewCommentRequest">parameters</see></param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<PullRequestReviewComment> GetAllForRepository(int repositoryId, PullRequestReviewCommentRequest request, ApiOptions options) public IObservable<PullRequestReviewComment> GetAllForRepository(long repositoryId, PullRequestReviewCommentRequest request, ApiOptions options)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -222,7 +222,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#get-a-single-comment</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#get-a-single-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request review comment number</param> /// <param name="number">The pull request review comment number</param>
public IObservable<PullRequestReviewComment> GetComment(int repositoryId, int number) public IObservable<PullRequestReviewComment> GetComment(long repositoryId, int number)
{ {
return _client.GetComment(repositoryId, number).ToObservable(); return _client.GetComment(repositoryId, number).ToObservable();
} }
@@ -251,7 +251,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The Pull Request number</param> /// <param name="number">The Pull Request number</param>
/// <param name="comment">The comment</param> /// <param name="comment">The comment</param>
public IObservable<PullRequestReviewComment> Create(int repositoryId, int number, PullRequestReviewCommentCreate comment) public IObservable<PullRequestReviewComment> Create(long repositoryId, int number, PullRequestReviewCommentCreate comment)
{ {
Ensure.ArgumentNotNull(comment, "comment"); Ensure.ArgumentNotNull(comment, "comment");
@@ -282,7 +282,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
/// <param name="comment">The comment</param> /// <param name="comment">The comment</param>
public IObservable<PullRequestReviewComment> CreateReply(int repositoryId, int number, PullRequestReviewCommentReplyCreate comment) public IObservable<PullRequestReviewComment> CreateReply(long repositoryId, int number, PullRequestReviewCommentReplyCreate comment)
{ {
Ensure.ArgumentNotNull(comment, "comment"); Ensure.ArgumentNotNull(comment, "comment");
@@ -313,7 +313,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request review comment number</param> /// <param name="number">The pull request review comment number</param>
/// <param name="comment">The edited comment</param> /// <param name="comment">The edited comment</param>
public IObservable<PullRequestReviewComment> Edit(int repositoryId, int number, PullRequestReviewCommentEdit comment) public IObservable<PullRequestReviewComment> Edit(long repositoryId, int number, PullRequestReviewCommentEdit comment)
{ {
Ensure.ArgumentNotNull(comment, "comment"); Ensure.ArgumentNotNull(comment, "comment");
@@ -341,7 +341,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/comments/#delete-a-comment</remarks> /// <remarks>http://developer.github.com/v3/pulls/comments/#delete-a-comment</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request review comment number</param> /// <param name="number">The pull request review comment number</param>
public IObservable<Unit> Delete(int repositoryId, int number) public IObservable<Unit> Delete(long repositoryId, int number)
{ {
return _client.Delete(repositoryId, number).ToObservable(); return _client.Delete(repositoryId, number).ToObservable();
} }

View File

@@ -51,7 +51,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the pull request</param> /// <param name="number">The number of the pull request</param>
public IObservable<PullRequest> Get(int repositoryId, int number) public IObservable<PullRequest> Get(long repositoryId, int number)
{ {
return _client.Get(repositoryId, number).ToObservable(); return _client.Get(repositoryId, number).ToObservable();
} }
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
/// http://developer.github.com/v3/pulls/#list-pull-requests /// http://developer.github.com/v3/pulls/#list-pull-requests
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<PullRequest> GetAllForRepository(int repositoryId) public IObservable<PullRequest> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -110,7 +110,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<PullRequest> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<PullRequest> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -143,7 +143,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of pull requests returned</param> /// <param name="request">Used to filter and sort the list of pull requests returned</param>
public IObservable<PullRequest> GetAllForRepository(int repositoryId, PullRequestRequest request) public IObservable<PullRequest> GetAllForRepository(long repositoryId, PullRequestRequest request)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -180,7 +180,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter and sort the list of pull requests returned</param> /// <param name="request">Used to filter and sort the list of pull requests returned</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<PullRequest> GetAllForRepository(int repositoryId, PullRequestRequest request, ApiOptions options) public IObservable<PullRequest> GetAllForRepository(long repositoryId, PullRequestRequest request, ApiOptions options)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -211,7 +211,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/#create-a-pull-request</remarks> /// <remarks>http://developer.github.com/v3/pulls/#create-a-pull-request</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newPullRequest">A <see cref="NewPullRequest"/> instance describing the new PullRequest to create</param> /// <param name="newPullRequest">A <see cref="NewPullRequest"/> instance describing the new PullRequest to create</param>
public IObservable<PullRequest> Create(int repositoryId, NewPullRequest newPullRequest) public IObservable<PullRequest> Create(long repositoryId, NewPullRequest newPullRequest)
{ {
Ensure.ArgumentNotNull(newPullRequest, "newPullRequest"); Ensure.ArgumentNotNull(newPullRequest, "newPullRequest");
@@ -244,7 +244,7 @@ namespace Octokit.Reactive
/// <param name="number">The PullRequest number</param> /// <param name="number">The PullRequest number</param>
/// <param name="pullRequestUpdate">An <see cref="PullRequestUpdate"/> instance describing the changes to make to the PullRequest /// <param name="pullRequestUpdate">An <see cref="PullRequestUpdate"/> instance describing the changes to make to the PullRequest
/// </param> /// </param>
public IObservable<PullRequest> Update(int repositoryId, int number, PullRequestUpdate pullRequestUpdate) public IObservable<PullRequest> Update(long repositoryId, int number, PullRequestUpdate pullRequestUpdate)
{ {
Ensure.ArgumentNotNull(pullRequestUpdate, "pullRequestUpdate"); Ensure.ArgumentNotNull(pullRequestUpdate, "pullRequestUpdate");
@@ -275,7 +275,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
/// <param name="mergePullRequest">A <see cref="MergePullRequest"/> instance describing a pull request merge</param> /// <param name="mergePullRequest">A <see cref="MergePullRequest"/> instance describing a pull request merge</param>
public IObservable<PullRequestMerge> Merge(int repositoryId, int number, MergePullRequest mergePullRequest) public IObservable<PullRequestMerge> Merge(long repositoryId, int number, MergePullRequest mergePullRequest)
{ {
Ensure.ArgumentNotNull(mergePullRequest, "mergePullRequest"); Ensure.ArgumentNotNull(mergePullRequest, "mergePullRequest");
@@ -303,7 +303,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged</remarks> /// <remarks>http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
public IObservable<bool> Merged(int repositoryId, int number) public IObservable<bool> Merged(long repositoryId, int number)
{ {
return _client.Merged(repositoryId, number).ToObservable(); return _client.Merged(repositoryId, number).ToObservable();
} }
@@ -329,7 +329,7 @@ namespace Octokit.Reactive
/// <remarks>http://developer.github.com/v3/pulls/#list-commits-on-a-pull-request</remarks> /// <remarks>http://developer.github.com/v3/pulls/#list-commits-on-a-pull-request</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
public IObservable<PullRequestCommit> Commits(int repositoryId, int number) public IObservable<PullRequestCommit> Commits(long repositoryId, int number)
{ {
return _connection.GetAndFlattenAllPages<PullRequestCommit>(ApiUrls.PullRequestCommits(repositoryId, number)); return _connection.GetAndFlattenAllPages<PullRequestCommit>(ApiUrls.PullRequestCommits(repositoryId, number));
} }
@@ -355,7 +355,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks> /// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The pull request number</param> /// <param name="number">The pull request number</param>
public IObservable<PullRequestFile> Files(int repositoryId, int number) public IObservable<PullRequestFile> Files(long repositoryId, int number)
{ {
return _connection.GetAndFlattenAllPages<PullRequestFile>(ApiUrls.PullRequestFiles(repositoryId, number)); return _connection.GetAndFlattenAllPages<PullRequestFile>(ApiUrls.PullRequestFiles(repositoryId, number));
} }

View File

@@ -52,7 +52,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The name of the reference</param> /// <param name="reference">The name of the reference</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Reference> Get(int repositoryId, string reference) public IObservable<Reference> Get(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -84,7 +84,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Reference> GetAll(int repositoryId) public IObservable<Reference> GetAll(long repositoryId)
{ {
return _connection.GetAndFlattenAllPages<Reference>(ApiUrls.Reference(repositoryId)); return _connection.GetAndFlattenAllPages<Reference>(ApiUrls.Reference(repositoryId));
} }
@@ -117,7 +117,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="subNamespace">The sub-namespace to get references for</param> /// <param name="subNamespace">The sub-namespace to get references for</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Reference> GetAllForSubNamespace(int repositoryId, string subNamespace) public IObservable<Reference> GetAllForSubNamespace(long repositoryId, string subNamespace)
{ {
Ensure.ArgumentNotNullOrEmptyString(subNamespace, "subNamespace"); Ensure.ArgumentNotNullOrEmptyString(subNamespace, "subNamespace");
@@ -152,7 +152,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference to create</param> /// <param name="reference">The reference to create</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Reference> Create(int repositoryId, NewReference reference) public IObservable<Reference> Create(long repositoryId, NewReference reference)
{ {
Ensure.ArgumentNotNull(reference, "reference"); Ensure.ArgumentNotNull(reference, "reference");
@@ -190,7 +190,7 @@ namespace Octokit.Reactive
/// <param name="reference">The name of the reference</param> /// <param name="reference">The name of the reference</param>
/// <param name="referenceUpdate">The updated reference data</param> /// <param name="referenceUpdate">The updated reference data</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Reference> Update(int repositoryId, string reference, ReferenceUpdate referenceUpdate) public IObservable<Reference> Update(long repositoryId, string reference, ReferenceUpdate referenceUpdate)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
Ensure.ArgumentNotNull(referenceUpdate, "update"); Ensure.ArgumentNotNull(referenceUpdate, "update");
@@ -226,7 +226,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The name of the reference</param> /// <param name="reference">The name of the reference</param>
/// <returns></returns> /// <returns></returns>
public IObservable<Unit> Delete(int repositoryId, string reference) public IObservable<Unit> Delete(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");

View File

@@ -49,7 +49,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Release> GetAll(int repositoryId) public IObservable<Release> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -82,7 +82,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Release> GetAll(int repositoryId, ApiOptions options) public IObservable<Release> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -116,7 +116,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The id of the release</param> /// <param name="id">The id of the release</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Release> Get(int repositoryId, int id) public IObservable<Release> Get(long repositoryId, int id)
{ {
return _client.Get(repositoryId, id).ToObservable(); return _client.Get(repositoryId, id).ToObservable();
} }
@@ -146,7 +146,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Release> GetLatest(int repositoryId) public IObservable<Release> GetLatest(long repositoryId)
{ {
return _client.GetLatest(repositoryId).ToObservable(); return _client.GetLatest(repositoryId).ToObservable();
} }
@@ -179,7 +179,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="data">A description of the release to create</param> /// <param name="data">A description of the release to create</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Release> Create(int repositoryId, NewRelease data) public IObservable<Release> Create(long repositoryId, NewRelease data)
{ {
Ensure.ArgumentNotNull(data, "data"); Ensure.ArgumentNotNull(data, "data");
@@ -216,7 +216,7 @@ namespace Octokit.Reactive
/// <param name="id">The id of the release</param> /// <param name="id">The id of the release</param>
/// <param name="data">A description of the release to edit</param> /// <param name="data">A description of the release to edit</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Release> Edit(int repositoryId, int id, ReleaseUpdate data) public IObservable<Release> Edit(long repositoryId, int id, ReleaseUpdate data)
{ {
Ensure.ArgumentNotNull(data, "data"); Ensure.ArgumentNotNull(data, "data");
@@ -250,7 +250,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The id of the release to delete</param> /// <param name="id">The id of the release to delete</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Unit> Delete(int repositoryId, int id) public IObservable<Unit> Delete(long repositoryId, int id)
{ {
return _client.Delete(repositoryId, id).ToObservable(); return _client.Delete(repositoryId, id).ToObservable();
} }
@@ -282,7 +282,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The id of the <see cref="Release"/>.</param> /// <param name="id">The id of the <see cref="Release"/>.</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<ReleaseAsset> GetAllAssets(int repositoryId, int id) public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id)
{ {
return GetAllAssets(repositoryId, id, ApiOptions.None); return GetAllAssets(repositoryId, id, ApiOptions.None);
} }
@@ -317,7 +317,7 @@ namespace Octokit.Reactive
/// <param name="id">The id of the <see cref="Release"/>.</param> /// <param name="id">The id of the <see cref="Release"/>.</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<ReleaseAsset> GetAllAssets(int repositoryId, int id, ApiOptions options) public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -350,7 +350,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="assetId">The id of the <see cref="ReleaseAsset"/></param> /// <param name="assetId">The id of the <see cref="ReleaseAsset"/></param>
public IObservable<ReleaseAsset> GetAsset(int repositoryId, int assetId) public IObservable<ReleaseAsset> GetAsset(long repositoryId, int assetId)
{ {
Ensure.ArgumentNotNull(assetId, "assetId"); Ensure.ArgumentNotNull(assetId, "assetId");
@@ -402,7 +402,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="assetId">The id of the <see cref="ReleaseAsset"/></param> /// <param name="assetId">The id of the <see cref="ReleaseAsset"/></param>
/// <param name="data">Description of the asset with its amended data</param> /// <param name="data">Description of the asset with its amended data</param>
public IObservable<ReleaseAsset> EditAsset(int repositoryId, int assetId, ReleaseAssetUpdate data) public IObservable<ReleaseAsset> EditAsset(long repositoryId, int assetId, ReleaseAssetUpdate data)
{ {
Ensure.ArgumentNotNull(data, "data"); Ensure.ArgumentNotNull(data, "data");
@@ -434,7 +434,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="id">The id of the <see cref="ReleaseAsset"/>.</param> /// <param name="id">The id of the <see cref="ReleaseAsset"/>.</param>
public IObservable<Unit> DeleteAsset(int repositoryId, int id) public IObservable<Unit> DeleteAsset(long repositoryId, int id)
{ {
return _client.DeleteAsset(repositoryId, id).ToObservable(); return _client.DeleteAsset(repositoryId, id).ToObservable();
} }

View File

@@ -53,7 +53,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<User> GetAll(int repositoryId) public IObservable<User> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -86,7 +86,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <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>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<User> GetAll(int repositoryId, ApiOptions options) public IObservable<User> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -121,7 +121,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">Username of the prospective collaborator</param> /// <param name="user">Username of the prospective collaborator</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<bool> IsCollaborator(int repositoryId, string user) public IObservable<bool> IsCollaborator(long repositoryId, string user)
{ {
Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNullOrEmptyString(user, "user");
@@ -177,7 +177,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">Username of the new collaborator</param> /// <param name="user">Username of the new collaborator</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Unit> Add(int repositoryId, string user) public IObservable<Unit> Add(long repositoryId, string user)
{ {
Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNullOrEmptyString(user, "user");
@@ -194,7 +194,7 @@ namespace Octokit.Reactive
/// <param name="user">Username of the new collaborator</param> /// <param name="user">Username of the new collaborator</param>
/// <param name="permission">The permission to set. Only valid on organization-owned repositories.</param> /// <param name="permission">The permission to set. Only valid on organization-owned repositories.</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<bool> Add(int repositoryId, string user, CollaboratorRequest permission) public IObservable<bool> Add(long repositoryId, string user, CollaboratorRequest permission)
{ {
Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNullOrEmptyString(user, "user");
Ensure.ArgumentNotNull(permission, "permission"); Ensure.ArgumentNotNull(permission, "permission");
@@ -249,7 +249,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">The username of the prospective collaborator</param> /// <param name="user">The username of the prospective collaborator</param>
public IObservable<RepositoryInvitation> Invite(int repositoryId, string user) public IObservable<RepositoryInvitation> Invite(long repositoryId, string user)
{ {
Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNullOrEmptyString(user, "user");
@@ -265,7 +265,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">The username of the prospective collaborator</param> /// <param name="user">The username of the prospective collaborator</param>
/// <param name="permission">The permission to set. Only valid on organization-owned repositories.</param> /// <param name="permission">The permission to set. Only valid on organization-owned repositories.</param>
public IObservable<RepositoryInvitation> Invite(int repositoryId, string user, CollaboratorRequest permission) public IObservable<RepositoryInvitation> Invite(long repositoryId, string user, CollaboratorRequest permission)
{ {
Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNullOrEmptyString(user, "user");
Ensure.ArgumentNotNull(permission, "psermission"); Ensure.ArgumentNotNull(permission, "psermission");
@@ -301,7 +301,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository</param> /// <param name="repositoryId">The id of the repository</param>
/// <param name="user">Username of the deleted collaborator</param> /// <param name="user">Username of the deleted collaborator</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
public IObservable<Unit> Delete(int repositoryId, string user) public IObservable<Unit> Delete(long repositoryId, string user)
{ {
Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNullOrEmptyString(user, "user");

View File

@@ -89,7 +89,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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> /// <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> /// <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(); return _client.Delete(repositoryId).ToObservable();
} }
@@ -113,7 +113,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns>A <see cref="Repository"/></returns> /// <returns>A <see cref="Repository"/></returns>
public IObservable<Repository> Get(int repositoryId) public IObservable<Repository> Get(long repositoryId)
{ {
return _client.Get(repositoryId).ToObservable(); return _client.Get(repositoryId).ToObservable();
} }
@@ -350,7 +350,7 @@ namespace Octokit.Reactive
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns>All <see cref="T:Octokit.Branch"/>es of the repository</returns> /// <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")] [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); return Branch.GetAll(repositoryId, ApiOptions.None);
} }
@@ -387,7 +387,7 @@ namespace Octokit.Reactive
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns>All <see cref="T:Octokit.Branch"/>es of the repository</returns> /// <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")] [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"); Ensure.ArgumentNotNull(options, "options");
@@ -419,7 +419,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns>All contributors of the repository.</returns> /// <returns>All contributors of the repository.</returns>
public IObservable<RepositoryContributor> GetAllContributors(int repositoryId) public IObservable<RepositoryContributor> GetAllContributors(long repositoryId)
{ {
return GetAllContributors(repositoryId, ApiOptions.None); return GetAllContributors(repositoryId, ApiOptions.None);
} }
@@ -452,7 +452,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <returns>All contributors of the repository.</returns> /// <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"); Ensure.ArgumentNotNull(options, "options");
@@ -486,7 +486,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="includeAnonymous">True if anonymous contributors should be included in result; Otherwise false</param> /// <param name="includeAnonymous">True if anonymous contributors should be included in result; Otherwise false</param>
/// <returns>All contributors of the repository.</returns> /// <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); 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="includeAnonymous">True if anonymous contributors should be included in result; Otherwise false</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
/// <returns>All contributors of the repository.</returns> /// <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"); Ensure.ArgumentNotNull(options, "options");
@@ -566,7 +566,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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> /// <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); var endpoint = ApiUrls.RepositoryLanguages(repositoryId);
return _connection return _connection
@@ -599,7 +599,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns>All <see cref="T:Octokit.Team"/>s associated with the repository</returns> /// <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); return GetAllTeams(repositoryId, ApiOptions.None);
} }
@@ -632,7 +632,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <returns>All <see cref="T:Octokit.Team"/>s associated with the repository</returns> /// <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"); Ensure.ArgumentNotNull(options, "options");
@@ -664,7 +664,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <returns>All of the repositories tags.</returns> /// <returns>All of the repositories tags.</returns>
public IObservable<RepositoryTag> GetAllTags(int repositoryId) public IObservable<RepositoryTag> GetAllTags(long repositoryId)
{ {
return GetAllTags(repositoryId, ApiOptions.None); return GetAllTags(repositoryId, ApiOptions.None);
} }
@@ -697,7 +697,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <returns>All of the repositories tags.</returns> /// <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"); Ensure.ArgumentNotNull(options, "options");
@@ -734,7 +734,7 @@ namespace Octokit.Reactive
/// <param name="branchName">The name of the branch</param> /// <param name="branchName">The name of the branch</param>
/// <returns>The specified <see cref="T:Octokit.Branch"/></returns> /// <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")] [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"); Ensure.ArgumentNotNullOrEmptyString(branchName, "branchName");
@@ -763,7 +763,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="update">New values to update the repository with</param> /// <param name="update">New values to update the repository with</param>
/// <returns>The updated <see cref="T:Octokit.Repository"/></returns> /// <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"); Ensure.ArgumentNotNull(update, "update");
@@ -797,7 +797,7 @@ namespace Octokit.Reactive
/// <param name="update">New values to update the branch with</param> /// <param name="update">New values to update the branch with</param>
/// <returns>The updated <see cref="T:Octokit.Branch"/></returns> /// <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.")] [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.ArgumentNotNullOrEmptyString(branch, "branch");
Ensure.ArgumentNotNull(update, "update"); Ensure.ArgumentNotNull(update, "update");

View File

@@ -42,7 +42,7 @@ namespace Octokit.Reactive
/// See the <a href="https://developer.github.com/v3/repos/branches/#list-branches">API documentation</a> for more details /// See the <a href="https://developer.github.com/v3/repos/branches/#list-branches">API documentation</a> for more details
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
public IObservable<Branch> GetAll(int repositoryId) public IObservable<Branch> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -73,7 +73,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The ID of the repository</param> /// <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>
public IObservable<Branch> GetAll(int repositoryId, ApiOptions options) public IObservable<Branch> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -108,7 +108,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The ID of the repository</param> /// <param name="repositoryId">The ID of the repository</param>
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
public IObservable<Branch> Get(int repositoryId, string branch) public IObservable<Branch> Get(long repositoryId, string branch)
{ {
Ensure.ArgumentNotNullOrEmptyString(branch, "branch"); Ensure.ArgumentNotNullOrEmptyString(branch, "branch");
@@ -140,7 +140,7 @@ namespace Octokit.Reactive
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
/// <param name="update">New values to update the branch with</param> /// <param name="update">New values to update the branch with</param>
[Obsolete("This existing implementation will cease to work when the Branch Protection API preview period ends. Please use other ObservableRepositoryBranchesClient methods instead.")] [Obsolete("This existing implementation will cease to work when the Branch Protection API preview period ends. Please use other ObservableRepositoryBranchesClient methods instead.")]
public IObservable<Branch> Edit(int repositoryId, string branch, BranchUpdate update) public IObservable<Branch> Edit(long repositoryId, string branch, BranchUpdate update)
{ {
Ensure.ArgumentNotNullOrEmptyString(branch, "branch"); Ensure.ArgumentNotNullOrEmptyString(branch, "branch");
Ensure.ArgumentNotNull(update, "update"); Ensure.ArgumentNotNull(update, "update");
@@ -174,7 +174,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
public IObservable<BranchProtectionSettings> GetBranchProtection(int repositoryId, string branch) public IObservable<BranchProtectionSettings> GetBranchProtection(long repositoryId, string branch)
{ {
Ensure.ArgumentNotNullOrEmptyString(branch, "branch"); Ensure.ArgumentNotNullOrEmptyString(branch, "branch");
@@ -210,7 +210,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
/// <param name="update">Branch protection settings</param> /// <param name="update">Branch protection settings</param>
public IObservable<BranchProtectionSettings> UpdateBranchProtection(int repositoryId, string branch, BranchProtectionSettingsUpdate update) public IObservable<BranchProtectionSettings> UpdateBranchProtection(long repositoryId, string branch, BranchProtectionSettingsUpdate update)
{ {
Ensure.ArgumentNotNullOrEmptyString(branch, "branch"); Ensure.ArgumentNotNullOrEmptyString(branch, "branch");
Ensure.ArgumentNotNull(update, "update"); Ensure.ArgumentNotNull(update, "update");
@@ -244,7 +244,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="branch">The name of the branch</param> /// <param name="branch">The name of the branch</param>
public IObservable<bool> DeleteBranchProtection(int repositoryId, string branch) public IObservable<bool> DeleteBranchProtection(long repositoryId, string branch)
{ {
Ensure.ArgumentNotNullOrEmptyString(branch, "branch"); Ensure.ArgumentNotNullOrEmptyString(branch, "branch");

View File

@@ -45,7 +45,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <remarks>http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment</remarks>
public IObservable<CommitComment> Get(int repositoryId, int number) public IObservable<CommitComment> Get(long repositoryId, int number)
{ {
return _client.Get(repositoryId, number).ToObservable(); return _client.Get(repositoryId, number).ToObservable();
} }
@@ -69,7 +69,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks>
public IObservable<CommitComment> GetAllForRepository(int repositoryId) public IObservable<CommitComment> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -96,7 +96,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="options">Options to change the API response</param> /// <param name="options">Options to change the API response</param>
/// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks>
public IObservable<CommitComment> GetAllForRepository(int repositoryId, ApiOptions options) public IObservable<CommitComment> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -125,7 +125,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="sha">The sha of the commit</param> /// <param name="sha">The sha of the commit</param>
/// <remarks>http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit</remarks>
public IObservable<CommitComment> GetAllForCommit(int repositoryId, string sha) public IObservable<CommitComment> GetAllForCommit(long repositoryId, string sha)
{ {
Ensure.ArgumentNotNullOrEmptyString(sha, "sha"); Ensure.ArgumentNotNullOrEmptyString(sha, "sha");
@@ -157,7 +157,7 @@ namespace Octokit.Reactive
/// <param name="sha">The sha of the commit</param> /// <param name="sha">The sha of the commit</param>
/// <param name="options">Options to change the API response</param> /// <param name="options">Options to change the API response</param>
/// <remarks>http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit</remarks>
public IObservable<CommitComment> GetAllForCommit(int repositoryId, string sha, ApiOptions options) public IObservable<CommitComment> GetAllForCommit(long repositoryId, string sha, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(sha, "sha"); Ensure.ArgumentNotNullOrEmptyString(sha, "sha");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -190,7 +190,7 @@ namespace Octokit.Reactive
/// <param name="sha">The sha reference of commit</param> /// <param name="sha">The sha reference of commit</param>
/// <param name="newCommitComment">The new comment to add to the commit</param> /// <param name="newCommitComment">The new comment to add to the commit</param>
/// <remarks>http://developer.github.com/v3/repos/comments/#create-a-commit-comment</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#create-a-commit-comment</remarks>
public IObservable<CommitComment> Create(int repositoryId, string sha, NewCommitComment newCommitComment) public IObservable<CommitComment> Create(long repositoryId, string sha, NewCommitComment newCommitComment)
{ {
Ensure.ArgumentNotNullOrEmptyString(sha, "sha"); Ensure.ArgumentNotNullOrEmptyString(sha, "sha");
Ensure.ArgumentNotNull(newCommitComment, "newCommitComment"); Ensure.ArgumentNotNull(newCommitComment, "newCommitComment");
@@ -222,7 +222,7 @@ namespace Octokit.Reactive
/// <param name="number">The comment number</param> /// <param name="number">The comment number</param>
/// <param name="commentUpdate">The modified comment</param> /// <param name="commentUpdate">The modified comment</param>
/// <remarks>http://developer.github.com/v3/repos/comments/#update-a-commit-comment</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#update-a-commit-comment</remarks>
public IObservable<CommitComment> Update(int repositoryId, int number, string commentUpdate) public IObservable<CommitComment> Update(long repositoryId, int number, string commentUpdate)
{ {
Ensure.ArgumentNotNull(commentUpdate, "commentUpdate"); Ensure.ArgumentNotNull(commentUpdate, "commentUpdate");
@@ -250,7 +250,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <remarks>http://developer.github.com/v3/repos/comments/#delete-a-commit-comment</remarks> /// <remarks>http://developer.github.com/v3/repos/comments/#delete-a-commit-comment</remarks>
public IObservable<Unit> Delete(int repositoryId, int number) public IObservable<Unit> Delete(long repositoryId, int number)
{ {
return _client.Delete(repositoryId, number).ToObservable(); return _client.Delete(repositoryId, number).ToObservable();
} }

View File

@@ -46,7 +46,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="base">The reference to use as the base commit</param> /// <param name="base">The reference to use as the base commit</param>
/// <param name="head">The reference to use as the head commit</param> /// <param name="head">The reference to use as the head commit</param>
public IObservable<CompareResult> Compare(int repositoryId, string @base, string head) public IObservable<CompareResult> Compare(long repositoryId, string @base, string head)
{ {
Ensure.ArgumentNotNullOrEmptyString(@base, "base"); Ensure.ArgumentNotNullOrEmptyString(@base, "base");
Ensure.ArgumentNotNullOrEmptyString(head, "head"); Ensure.ArgumentNotNullOrEmptyString(head, "head");
@@ -74,7 +74,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference for the commit</param> /// <param name="reference">The reference for the commit</param>
public IObservable<GitHubCommit> Get(int repositoryId, string reference) public IObservable<GitHubCommit> Get(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -98,7 +98,7 @@ namespace Octokit.Reactive
/// Gets all commits for a given repository /// Gets all commits for a given repository
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<GitHubCommit> GetAll(int repositoryId) public IObservable<GitHubCommit> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, new CommitRequest(), ApiOptions.None); return GetAll(repositoryId, new CommitRequest(), ApiOptions.None);
} }
@@ -123,7 +123,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<GitHubCommit> GetAll(int repositoryId, ApiOptions options) public IObservable<GitHubCommit> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -150,7 +150,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter list of commits returned</param> /// <param name="request">Used to filter list of commits returned</param>
public IObservable<GitHubCommit> GetAll(int repositoryId, CommitRequest request) public IObservable<GitHubCommit> GetAll(long repositoryId, CommitRequest request)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -180,7 +180,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to filter list of commits returned</param> /// <param name="request">Used to filter list of commits returned</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<GitHubCommit> GetAll(int repositoryId, CommitRequest request, ApiOptions options) public IObservable<GitHubCommit> GetAll(long repositoryId, CommitRequest request, ApiOptions options)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -208,7 +208,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The repository reference</param> /// <param name="reference">The repository reference</param>
public IObservable<string> GetSha1(int repositoryId, string reference) public IObservable<string> GetSha1(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");

View File

@@ -43,7 +43,7 @@ namespace Octokit.Reactive
/// Returns the HTML rendered README. /// Returns the HTML rendered README.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<Readme> GetReadme(int repositoryId) public IObservable<Readme> GetReadme(long repositoryId)
{ {
return _client.Repository.Content.GetReadme(repositoryId).ToObservable(); return _client.Repository.Content.GetReadme(repositoryId).ToObservable();
} }
@@ -65,7 +65,7 @@ namespace Octokit.Reactive
/// Returns just the HTML portion of the README without the surrounding HTML document. /// Returns just the HTML portion of the README without the surrounding HTML document.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<string> GetReadmeHtml(int repositoryId) public IObservable<string> GetReadmeHtml(long repositoryId)
{ {
return _client.Repository.Content.GetReadmeHtml(repositoryId).ToObservable(); return _client.Repository.Content.GetReadmeHtml(repositoryId).ToObservable();
} }
@@ -89,7 +89,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks> /// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<byte[]> GetArchive(int repositoryId) public IObservable<byte[]> GetArchive(long repositoryId)
{ {
return GetArchive(repositoryId, ArchiveFormat.Tarball); return GetArchive(repositoryId, ArchiveFormat.Tarball);
} }
@@ -115,7 +115,7 @@ namespace Octokit.Reactive
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks> /// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param> /// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
public IObservable<byte[]> GetArchive(int repositoryId, ArchiveFormat archiveFormat) public IObservable<byte[]> GetArchive(long repositoryId, ArchiveFormat archiveFormat)
{ {
return GetArchive(repositoryId, archiveFormat, string.Empty); return GetArchive(repositoryId, archiveFormat, string.Empty);
} }
@@ -144,7 +144,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param> /// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
/// <param name="reference">A valid Git reference.</param> /// <param name="reference">A valid Git reference.</param>
public IObservable<byte[]> GetArchive(int repositoryId, ArchiveFormat archiveFormat, string reference) public IObservable<byte[]> GetArchive(long repositoryId, ArchiveFormat archiveFormat, string reference)
{ {
Ensure.ArgumentNotNull(reference, "reference"); Ensure.ArgumentNotNull(reference, "reference");
@@ -178,7 +178,7 @@ namespace Octokit.Reactive
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param> /// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
/// <param name="reference">A valid Git reference.</param> /// <param name="reference">A valid Git reference.</param>
/// <param name="timeout"> Time span until timeout </param> /// <param name="timeout"> Time span until timeout </param>
public IObservable<byte[]> GetArchive(int repositoryId, ArchiveFormat archiveFormat, string reference, TimeSpan timeout) public IObservable<byte[]> GetArchive(long repositoryId, ArchiveFormat archiveFormat, string reference, TimeSpan timeout)
{ {
Ensure.GreaterThanZero(timeout, "timeout"); Ensure.GreaterThanZero(timeout, "timeout");
Ensure.ArgumentNotNull(reference, "reference"); Ensure.ArgumentNotNull(reference, "reference");
@@ -214,7 +214,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="path">The content path</param> /// <param name="path">The content path</param>
public IObservable<RepositoryContent> GetAllContents(int repositoryId, string path) public IObservable<RepositoryContent> GetAllContents(long repositoryId, string path)
{ {
Ensure.ArgumentNotNullOrEmptyString(path, "path"); Ensure.ArgumentNotNullOrEmptyString(path, "path");
@@ -242,7 +242,7 @@ namespace Octokit.Reactive
/// Returns the contents of the root directory in a repository. /// Returns the contents of the root directory in a repository.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<RepositoryContent> GetAllContents(int repositoryId) public IObservable<RepositoryContent> GetAllContents(long repositoryId)
{ {
return _client return _client
.Connection .Connection
@@ -280,7 +280,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The name of the commit/branch/tag. Default: the repositorys default branch (usually master)</param> /// <param name="reference">The name of the commit/branch/tag. Default: the repositorys default branch (usually master)</param>
/// <param name="path">The content path</param> /// <param name="path">The content path</param>
public IObservable<RepositoryContent> GetAllContentsByRef(int repositoryId, string reference, string path) public IObservable<RepositoryContent> GetAllContentsByRef(long repositoryId, string reference, string path)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
Ensure.ArgumentNotNullOrEmptyString(path, "path"); Ensure.ArgumentNotNullOrEmptyString(path, "path");
@@ -308,7 +308,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The name of the commit/branch/tag. Default: the repositorys default branch (usually master)</param> /// <param name="reference">The name of the commit/branch/tag. Default: the repositorys default branch (usually master)</param>
public IObservable<RepositoryContent> GetAllContentsByRef(int repositoryId, string reference) public IObservable<RepositoryContent> GetAllContentsByRef(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -338,7 +338,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="path">The path to the file</param> /// <param name="path">The path to the file</param>
/// <param name="request">Information about the file to create</param> /// <param name="request">Information about the file to create</param>
public IObservable<RepositoryContentChangeSet> CreateFile(int repositoryId, string path, CreateFileRequest request) public IObservable<RepositoryContentChangeSet> CreateFile(long repositoryId, string path, CreateFileRequest request)
{ {
Ensure.ArgumentNotNullOrEmptyString(path, "path"); Ensure.ArgumentNotNullOrEmptyString(path, "path");
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -369,7 +369,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="path">The path to the file</param> /// <param name="path">The path to the file</param>
/// <param name="request">Information about the file to update</param> /// <param name="request">Information about the file to update</param>
public IObservable<RepositoryContentChangeSet> UpdateFile(int repositoryId, string path, UpdateFileRequest request) public IObservable<RepositoryContentChangeSet> UpdateFile(long repositoryId, string path, UpdateFileRequest request)
{ {
Ensure.ArgumentNotNullOrEmptyString(path, "path"); Ensure.ArgumentNotNullOrEmptyString(path, "path");
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -400,7 +400,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="path">The path to the file</param> /// <param name="path">The path to the file</param>
/// <param name="request">Information about the file to delete</param> /// <param name="request">Information about the file to delete</param>
public IObservable<Unit> DeleteFile(int repositoryId, string path, DeleteFileRequest request) public IObservable<Unit> DeleteFile(long repositoryId, string path, DeleteFileRequest request)
{ {
Ensure.ArgumentNotNullOrEmptyString(path, "path"); Ensure.ArgumentNotNullOrEmptyString(path, "path");
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");

View File

@@ -49,7 +49,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="number">The id of the deploy key.</param> /// <param name="number">The id of the deploy key.</param>
public IObservable<DeployKey> Get(int repositoryId, int number) public IObservable<DeployKey> Get(long repositoryId, int number)
{ {
return _client.Get(repositoryId, number).ToObservable(); return _client.Get(repositoryId, number).ToObservable();
} }
@@ -77,7 +77,7 @@ namespace Octokit.Reactive
/// See the <a href="https://developer.github.com/v3/repos/keys/#list"> API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/keys/#list"> API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
public IObservable<DeployKey> GetAll(int repositoryId) public IObservable<DeployKey> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -108,7 +108,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <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>
public IObservable<DeployKey> GetAll(int repositoryId, ApiOptions options) public IObservable<DeployKey> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -148,7 +148,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="newDeployKey">The deploy key to create for the repository.</param> /// <param name="newDeployKey">The deploy key to create for the repository.</param>
public IObservable<DeployKey> Create(int repositoryId, NewDeployKey newDeployKey) public IObservable<DeployKey> Create(long repositoryId, NewDeployKey newDeployKey)
{ {
Ensure.ArgumentNotNull(newDeployKey, "newDeployKey"); Ensure.ArgumentNotNull(newDeployKey, "newDeployKey");
@@ -187,7 +187,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="number">The id of the deploy key to delete.</param> /// <param name="number">The id of the deploy key to delete.</param>
public IObservable<Unit> Delete(int repositoryId, int number) public IObservable<Unit> Delete(long repositoryId, int number)
{ {
return _client.Delete(repositoryId, number).ToObservable(); return _client.Delete(repositoryId, number).ToObservable();
} }

View File

@@ -50,7 +50,7 @@ namespace Octokit.Reactive
/// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information. /// See <a href="http://developer.github.com/v3/repos/forks/#list-forks">API documentation</a> for more information.
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<Repository> GetAll(int repositoryId) public IObservable<Repository> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -81,7 +81,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public IObservable<Repository> GetAll(int repositoryId, ApiOptions options) public IObservable<Repository> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -114,7 +114,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to request and filter a list of repository forks</param> /// <param name="request">Used to request and filter a list of repository forks</param>
public IObservable<Repository> GetAll(int repositoryId, RepositoryForksListRequest request) public IObservable<Repository> GetAll(long repositoryId, RepositoryForksListRequest request)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
@@ -150,7 +150,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="request">Used to request and filter a list of repository forks</param> /// <param name="request">Used to request and filter a list of repository forks</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public IObservable<Repository> GetAll(int repositoryId, RepositoryForksListRequest request, ApiOptions options) public IObservable<Repository> GetAll(long repositoryId, RepositoryForksListRequest request, ApiOptions options)
{ {
Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(request, "request");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -184,7 +184,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="fork">Used to fork a repository</param> /// <param name="fork">Used to fork a repository</param>
public IObservable<Repository> Create(int repositoryId, NewRepositoryFork fork) public IObservable<Repository> Create(long repositoryId, NewRepositoryFork fork)
{ {
Ensure.ArgumentNotNull(fork, "fork"); Ensure.ArgumentNotNull(fork, "fork");

View File

@@ -43,7 +43,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
public IObservable<RepositoryHook> GetAll(int repositoryId) public IObservable<RepositoryHook> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -70,7 +70,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#list">API documentation</a> for more information.</remarks>
public IObservable<RepositoryHook> GetAll(int repositoryId, ApiOptions options) public IObservable<RepositoryHook> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -98,7 +98,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="hookId">The repository's hook id</param> /// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#get-single-hook">API documentation</a> for more information.</remarks>
public IObservable<RepositoryHook> Get(int repositoryId, int hookId) public IObservable<RepositoryHook> Get(long repositoryId, int hookId)
{ {
return _client.Get(repositoryId, hookId).ToObservable(); return _client.Get(repositoryId, hookId).ToObservable();
} }
@@ -125,7 +125,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="hook">The hook's parameters</param> /// <param name="hook">The hook's parameters</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#create-a-hook">API documentation</a> for more information.</remarks>
public IObservable<RepositoryHook> Create(int repositoryId, NewRepositoryHook hook) public IObservable<RepositoryHook> Create(long repositoryId, NewRepositoryHook hook)
{ {
Ensure.ArgumentNotNull(hook, "hook"); Ensure.ArgumentNotNull(hook, "hook");
@@ -156,7 +156,7 @@ namespace Octokit.Reactive
/// <param name="hookId">The repository's hook id</param> /// <param name="hookId">The repository's hook id</param>
/// <param name="hook">The requested changes to an edit repository hook</param> /// <param name="hook">The requested changes to an edit repository hook</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
public IObservable<RepositoryHook> Edit(int repositoryId, int hookId, EditRepositoryHook hook) public IObservable<RepositoryHook> Edit(long repositoryId, int hookId, EditRepositoryHook hook)
{ {
Ensure.ArgumentNotNull(hook, "hook"); Ensure.ArgumentNotNull(hook, "hook");
@@ -188,7 +188,7 @@ namespace Octokit.Reactive
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information. /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#test-a-hook">API documentation</a> for more information.
/// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook
/// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks> /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated.</remarks>
public IObservable<Unit> Test(int repositoryId, int hookId) public IObservable<Unit> Test(long repositoryId, int hookId)
{ {
return _client.Test(repositoryId, hookId).ToObservable(); return _client.Test(repositoryId, hookId).ToObservable();
} }
@@ -214,7 +214,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="hookId">The repository's hook id</param> /// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#edit-a-hook">API documentation</a> for more information.</remarks>
public IObservable<Unit> Ping(int repositoryId, int hookId) public IObservable<Unit> Ping(long repositoryId, int hookId)
{ {
return _client.Ping(repositoryId, hookId).ToObservable(); return _client.Ping(repositoryId, hookId).ToObservable();
} }
@@ -240,7 +240,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="hookId">The repository's hook id</param> /// <param name="hookId">The repository's hook id</param>
/// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks> /// <remarks>See <a href="http://developer.github.com/v3/repos/hooks/#delete-a-hook">API documentation</a> for more information.</remarks>
public IObservable<Unit> Delete(int repositoryId, int hookId) public IObservable<Unit> Delete(long repositoryId, int hookId)
{ {
return _client.Delete(repositoryId, hookId).ToObservable(); return _client.Delete(repositoryId, hookId).ToObservable();
} }

View File

@@ -51,7 +51,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The id of the repository.</param> /// <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>
public IObservable<bool> Delete(int repositoryId, int invitationId) public IObservable<bool> Delete(long repositoryId, int invitationId)
{ {
return _client.Delete(repositoryId, invitationId).ToObservable(); return _client.Delete(repositoryId, invitationId).ToObservable();
} }
@@ -65,7 +65,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The id of the repository.</param> /// <param name="repositoryId">The id of the repository.</param>
/// <param name="invitationId">The id of the invitatio.n</param> /// <param name="invitationId">The id of the invitatio.n</param>
/// <param name="permissions">The permission to set.</param> /// <param name="permissions">The permission to set.</param>
public IObservable<RepositoryInvitation> Edit(int repositoryId, int invitationId, InvitationUpdate permissions) public IObservable<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions)
{ {
Ensure.ArgumentNotNull(permissions, "persmissions"); Ensure.ArgumentNotNull(permissions, "persmissions");
@@ -90,7 +90,7 @@ namespace Octokit.Reactive
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information. /// 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="repositoryId">The id of the repository</param>
public IObservable<RepositoryInvitation> GetAllForRepository(int repositoryId) public IObservable<RepositoryInvitation> GetAllForRepository(long repositoryId)
{ {
return _connection.GetAndFlattenAllPages<RepositoryInvitation>(ApiUrls.RepositoryInvitations(repositoryId), null, AcceptHeaders.InvitationsApiPreview, ApiOptions.None); return _connection.GetAndFlattenAllPages<RepositoryInvitation>(ApiUrls.RepositoryInvitations(repositoryId), null, AcceptHeaders.InvitationsApiPreview, ApiOptions.None);
} }

View File

@@ -48,7 +48,7 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site">API documentation</a> for more information.
/// </remarks> /// </remarks>
public IObservable<Page> Get(int repositoryId) public IObservable<Page> Get(long repositoryId)
{ {
return _client.Get(repositoryId).ToObservable(); return _client.Get(repositoryId).ToObservable();
} }
@@ -76,7 +76,7 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
/// </remarks> /// </remarks>
public IObservable<PagesBuild> GetAll(int repositoryId) public IObservable<PagesBuild> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -107,7 +107,7 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
/// </remarks> /// </remarks>
public IObservable<PagesBuild> GetAll(int repositoryId, ApiOptions options) public IObservable<PagesBuild> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -137,7 +137,7 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-latest-pages-build">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#list-latest-pages-build">API documentation</a> for more information.
/// </remarks> /// </remarks>
public IObservable<PagesBuild> GetLatest(int repositoryId) public IObservable<PagesBuild> GetLatest(long repositoryId)
{ {
return _client.GetLatest(repositoryId).ToObservable(); return _client.GetLatest(repositoryId).ToObservable();
} }
@@ -165,7 +165,7 @@ namespace Octokit.Reactive
/// <remarks> /// <remarks>
/// See the <a href="https://developer.github.com/v3/repos/pages/#request-a-page-build">API documentation</a> for more information. /// See the <a href="https://developer.github.com/v3/repos/pages/#request-a-page-build">API documentation</a> for more information.
/// </remarks> /// </remarks>
public IObservable<PagesBuild> RequestPageBuild(int repositoryId) public IObservable<PagesBuild> RequestPageBuild(long repositoryId)
{ {
return _client.RequestPageBuild(repositoryId).ToObservable(); return _client.RequestPageBuild(repositoryId).ToObservable();
} }

View File

@@ -42,7 +42,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
public IObservable<User> GetAllStargazers(int repositoryId) public IObservable<User> GetAllStargazers(long repositoryId)
{ {
return GetAllStargazers(repositoryId, ApiOptions.None); return GetAllStargazers(repositoryId, ApiOptions.None);
} }
@@ -69,7 +69,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
public IObservable<User> GetAllStargazers(int repositoryId, ApiOptions options) public IObservable<User> GetAllStargazers(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -95,7 +95,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
public IObservable<UserStar> GetAllStargazersWithTimestamps(int repositoryId) public IObservable<UserStar> GetAllStargazersWithTimestamps(long repositoryId)
{ {
return GetAllStargazersWithTimestamps(repositoryId, ApiOptions.None); return GetAllStargazersWithTimestamps(repositoryId, ApiOptions.None);
} }
@@ -122,7 +122,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <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>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
public IObservable<UserStar> GetAllStargazersWithTimestamps(int repositoryId, ApiOptions options) public IObservable<UserStar> GetAllStargazersWithTimestamps(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");

View File

@@ -38,7 +38,7 @@ namespace Octokit.Reactive
/// Returns a list of <see cref="Contributor"/> for the given repository /// Returns a list of <see cref="Contributor"/> for the given repository
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<IEnumerable<Contributor>> GetContributors(int repositoryId) public IObservable<IEnumerable<Contributor>> GetContributors(long repositoryId)
{ {
return _client.Repository.Statistics.GetContributors(repositoryId).ToObservable(); return _client.Repository.Statistics.GetContributors(repositoryId).ToObservable();
} }
@@ -60,7 +60,7 @@ namespace Octokit.Reactive
/// Returns the last year of commit activity grouped by week. /// Returns the last year of commit activity grouped by week.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<CommitActivity> GetCommitActivity(int repositoryId) public IObservable<CommitActivity> GetCommitActivity(long repositoryId)
{ {
return _client.Repository.Statistics.GetCommitActivity(repositoryId).ToObservable(); return _client.Repository.Statistics.GetCommitActivity(repositoryId).ToObservable();
} }
@@ -82,7 +82,7 @@ namespace Octokit.Reactive
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository. /// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<CodeFrequency> GetCodeFrequency(int repositoryId) public IObservable<CodeFrequency> GetCodeFrequency(long repositoryId)
{ {
return _client.Repository.Statistics.GetCodeFrequency(repositoryId).ToObservable(); return _client.Repository.Statistics.GetCodeFrequency(repositoryId).ToObservable();
} }
@@ -104,7 +104,7 @@ namespace Octokit.Reactive
/// Returns the total commit counts for the owner and total commit counts in total. /// Returns the total commit counts for the owner and total commit counts in total.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<Participation> GetParticipation(int repositoryId) public IObservable<Participation> GetParticipation(long repositoryId)
{ {
return _client.Repository.Statistics.GetParticipation(repositoryId).ToObservable(); return _client.Repository.Statistics.GetParticipation(repositoryId).ToObservable();
} }
@@ -126,7 +126,7 @@ namespace Octokit.Reactive
/// Returns a list of the number of commits per hour in each day /// Returns a list of the number of commits per hour in each day
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<PunchCard> GetPunchCard(int repositoryId) public IObservable<PunchCard> GetPunchCard(long repositoryId)
{ {
return _client.Repository.Statistics.GetPunchCard(repositoryId).ToObservable(); return _client.Repository.Statistics.GetPunchCard(repositoryId).ToObservable();
} }

View File

@@ -46,7 +46,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">Tha sha reference of the tag</param> /// <param name="reference">Tha sha reference of the tag</param>
public IObservable<GitTag> Get(int repositoryId, string reference) public IObservable<GitTag> Get(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="tag">The tag to create</param> /// <param name="tag">The tag to create</param>
public IObservable<GitTag> Create(int repositoryId, NewTag tag) public IObservable<GitTag> Create(long repositoryId, NewTag tag)
{ {
Ensure.ArgumentNotNull(tag, "tag"); Ensure.ArgumentNotNull(tag, "tag");

View File

@@ -46,7 +46,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The SHA that references the tree</param> /// <param name="reference">The SHA that references the tree</param>
public IObservable<TreeResponse> Get(int repositoryId, string reference) public IObservable<TreeResponse> Get(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The SHA that references the tree</param> /// <param name="reference">The SHA that references the tree</param>
public IObservable<TreeResponse> GetRecursive(int repositoryId, string reference) public IObservable<TreeResponse> GetRecursive(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -112,7 +112,7 @@ namespace Octokit.Reactive
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newTree">The value of the new tree</param> /// <param name="newTree">The value of the new tree</param>
public IObservable<TreeResponse> Create(int repositoryId, NewTree newTree) public IObservable<TreeResponse> Create(long repositoryId, NewTree newTree)
{ {
Ensure.ArgumentNotNull(newTree, "newTree"); Ensure.ArgumentNotNull(newTree, "newTree");

View File

@@ -42,7 +42,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
public IObservable<User> GetAllWatchers(int repositoryId) public IObservable<User> GetAllWatchers(long repositoryId)
{ {
return GetAllWatchers(repositoryId, ApiOptions.None); return GetAllWatchers(repositoryId, ApiOptions.None);
} }
@@ -69,7 +69,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="options">Options for changing the API's response.</param> /// <param name="options">Options for changing the API's response.</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
public IObservable<User> GetAllWatchers(int repositoryId, ApiOptions options) public IObservable<User> GetAllWatchers(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -142,7 +142,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated</exception>
public IObservable<bool> CheckWatched(int repositoryId) public IObservable<bool> CheckWatched(long repositoryId)
{ {
return _client.CheckWatched(repositoryId).ToObservable(); return _client.CheckWatched(repositoryId).ToObservable();
} }
@@ -167,7 +167,7 @@ namespace Octokit.Reactive
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newSubscription">A <see cref="NewSubscription"/> instance describing the new subscription to create</param> /// <param name="newSubscription">A <see cref="NewSubscription"/> instance describing the new subscription to create</param>
public IObservable<Subscription> WatchRepo(int repositoryId, NewSubscription newSubscription) public IObservable<Subscription> WatchRepo(long repositoryId, NewSubscription newSubscription)
{ {
Ensure.ArgumentNotNull(newSubscription, "newSubscription"); Ensure.ArgumentNotNull(newSubscription, "newSubscription");
@@ -191,7 +191,7 @@ namespace Octokit.Reactive
/// Unstars a repository for the authenticated user. /// Unstars a repository for the authenticated user.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public IObservable<bool> UnwatchRepo(int repositoryId) public IObservable<bool> UnwatchRepo(long repositoryId)
{ {
return _client.UnwatchRepo(repositoryId).ToObservable(); return _client.UnwatchRepo(repositoryId).ToObservable();
} }

View File

@@ -17,7 +17,7 @@ public class IssueCommentsClientTests
const string owner = "octokit"; const string owner = "octokit";
const string name = "octokit.net"; const string name = "octokit.net";
const int id = 12067722; const int id = 12067722;
const int repositoryId = 7528679; const long repositoryId = 7528679;
public TheGetMethod() public TheGetMethod()
{ {
@@ -76,7 +76,7 @@ public class IssueCommentsClientTests
const string owner = "octokit"; const string owner = "octokit";
const string name = "octokit.net"; const string name = "octokit.net";
const int repositoryId = 7528679; const long repositoryId = 7528679;
public TheGetAllForRepositoryMethod() public TheGetAllForRepositoryMethod()
{ {
@@ -261,7 +261,7 @@ public class IssueCommentsClientTests
const string owner = "octokit"; const string owner = "octokit";
const string name = "octokit.net"; const string name = "octokit.net";
const int number = 1115; const int number = 1115;
const int repositoryId = 7528679; const long repositoryId = 7528679;
public TheGetAllForIssueMethod() public TheGetAllForIssueMethod()
{ {

View File

@@ -807,7 +807,7 @@ public class PullRequestReviewCommentsClientTests : IDisposable
return createdComment; return createdComment;
} }
async Task<PullRequestReviewComment> CreateComment(string body, int position, int repositoryId, string pullRequestCommitId, int pullRequestNumber) async Task<PullRequestReviewComment> CreateComment(string body, int position, long repositoryId, string pullRequestCommitId, int pullRequestNumber)
{ {
var comment = new PullRequestReviewCommentCreate(body, pullRequestCommitId, path, position); var comment = new PullRequestReviewCommentCreate(body, pullRequestCommitId, path, position);

View File

@@ -173,7 +173,7 @@ public class ReleasesClientTests
readonly IReleasesClient _releaseClient; readonly IReleasesClient _releaseClient;
const string owner = "octokit"; const string owner = "octokit";
const string name = "octokit.net"; const string name = "octokit.net";
const int repositoryId = 252774; const long repositoryId = 252774;
public TheGetAllMethod() public TheGetAllMethod()
{ {
@@ -414,7 +414,7 @@ public class ReleasesClientTests
const string owner = "octokit"; const string owner = "octokit";
const string name = "octokit.net"; const string name = "octokit.net";
const int releaseId = 2248679; const int releaseId = 2248679;
const int repositoryId = 7528679; const long repositoryId = 7528679;
public TheUploadAssetMethod() public TheUploadAssetMethod()
{ {

View File

@@ -15,7 +15,7 @@ public class RepositoryCommentsClientTests
readonly IRepositoryCommentsClient _fixture; readonly IRepositoryCommentsClient _fixture;
const string owner = "octocat"; const string owner = "octocat";
const string name = "Hello-World"; const string name = "Hello-World";
const int repositoryId = 1296269; const long repositoryId = 1296269;
public TheGetMethod() public TheGetMethod()
{ {
@@ -71,7 +71,7 @@ public class RepositoryCommentsClientTests
readonly IRepositoryCommentsClient _fixture; readonly IRepositoryCommentsClient _fixture;
const string owner = "octocat"; const string owner = "octocat";
const string name = "Hello-World"; const string name = "Hello-World";
const int repositoryId = 1296269; const long repositoryId = 1296269;
public TheGetAllForRepositoryMethod() public TheGetAllForRepositoryMethod()
{ {
@@ -246,7 +246,7 @@ public class RepositoryCommentsClientTests
readonly IRepositoryCommentsClient _fixture; readonly IRepositoryCommentsClient _fixture;
const string owner = "octocat"; const string owner = "octocat";
const string name = "Hello-World"; const string name = "Hello-World";
const int repositoryId = 1296269; const long repositoryId = 1296269;
public TheGetAllForCommitMethod() public TheGetAllForCommitMethod()
{ {

View File

@@ -10,7 +10,7 @@ public class RepositoryPagesClientTests
readonly IRepositoryPagesClient _repositoryPagesClient; readonly IRepositoryPagesClient _repositoryPagesClient;
const string owner = "octokit"; const string owner = "octokit";
const string name = "octokit.net"; const string name = "octokit.net";
const int repositoryId = 7528679; const long repositoryId = 7528679;
public TheGetMethod() public TheGetMethod()
{ {

View File

@@ -19,7 +19,7 @@ namespace Octokit.Tests.Integration.Helpers
} }
private IConnection _connection; private IConnection _connection;
internal int RepositoryId { get; private set; } internal long RepositoryId { get; private set; }
internal string RepositoryOwner { get; private set; } internal string RepositoryOwner { get; private set; }
internal string RepositoryName { get; private set; } internal string RepositoryName { get; private set; }

View File

@@ -29,7 +29,7 @@ namespace Octokit.Tests.Integration.fixtures
public string RepositoryName { get { return _repository.Name; } } public string RepositoryName { get { return _repository.Name; } }
public int RepositoryId { get { return _repository.Id; } } public long RepositoryId { get { return _repository.Id; } }
public RepositoryHook ExpectedHook { get { return _hook; } } public RepositoryHook ExpectedHook { get { return _hook; } }

View File

@@ -12,7 +12,7 @@ public class DeploymentsClientTests
{ {
const string name = "name"; const string name = "name";
const string owner = "owner"; const string owner = "owner";
const int repositoryId = 1; const long repositoryId = 1;
[Fact] [Fact]
public async Task EnsuresNonNullArguments() public async Task EnsuresNonNullArguments()

View File

@@ -12,7 +12,7 @@ namespace Octokit.Tests.Reactive
private const string owner = "owner"; private const string owner = "owner";
private const string name = "name"; private const string name = "name";
private const string assignee = "assignee"; private const string assignee = "assignee";
private const int repositoryId = 1; private const long repositoryId = 1;
public class TheGetAllMethod public class TheGetAllMethod
{ {

View File

@@ -17,7 +17,7 @@ namespace Octokit.Tests.Reactive
private readonly ObservableDeploymentsClient _client; private readonly ObservableDeploymentsClient _client;
private const string owner = "owner"; private const string owner = "owner";
private const string name = "name"; private const string name = "name";
private const int repositoryId = 1; private const long repositoryId = 1;
public TheGetAllMethod() public TheGetAllMethod()
{ {

View File

@@ -26,7 +26,7 @@ namespace Octokit.Tests.Reactive
private readonly IObservableRepoCollaboratorsClient _client; private readonly IObservableRepoCollaboratorsClient _client;
private const string owner = "owner"; private const string owner = "owner";
private const string name = "name"; private const string name = "name";
private const int repositoryId = 1; private const long repositoryId = 1;
public TheGetAllMethod() public TheGetAllMethod()
{ {
@@ -233,9 +233,10 @@ namespace Octokit.Tests.Reactive
{ {
SetupWithoutNonReactiveClient(); SetupWithoutNonReactiveClient();
_client.IsCollaborator(1, "user"); var id = 1L;
_client.IsCollaborator(id, "user");
_githubClient.Repository.Collaborator.Received(1).IsCollaborator(Arg.Is(1), _githubClient.Repository.Collaborator.Received(1).IsCollaborator(Arg.Is(id),
Arg.Is("user")); Arg.Is("user"));
} }
@@ -244,9 +245,10 @@ namespace Octokit.Tests.Reactive
{ {
SetupWithoutNonReactiveClient(); SetupWithoutNonReactiveClient();
_client.IsCollaborator(1, "user"); var id = 1L;
_client.IsCollaborator(id, "user");
_githubClient.Repository.Collaborator.Received(1).IsCollaborator(Arg.Is(1), _githubClient.Repository.Collaborator.Received(1).IsCollaborator(Arg.Is(id),
Arg.Is("user")); Arg.Is("user"));
} }
} }
@@ -324,9 +326,10 @@ namespace Octokit.Tests.Reactive
{ {
SetupWithoutNonReactiveClient(); SetupWithoutNonReactiveClient();
_client.Add(1, "user"); var id = 1L;
_client.Add(id, "user");
_githubClient.Repository.Collaborator.Received(1).Add(Arg.Is(1), _githubClient.Repository.Collaborator.Received(1).Add(Arg.Is(id),
Arg.Is("user")); Arg.Is("user"));
} }
} }
@@ -478,9 +481,10 @@ namespace Octokit.Tests.Reactive
{ {
SetupWithoutNonReactiveClient(); SetupWithoutNonReactiveClient();
_client.Delete(1, "user"); var id = 1L;
_client.Delete(id, "user");
_githubClient.Repository.Collaborator.Received(1).Delete(Arg.Is(1), _githubClient.Repository.Collaborator.Received(1).Delete(Arg.Is(id),
Arg.Is("user")); Arg.Is("user"));
} }
} }

View File

@@ -36,7 +36,7 @@ namespace Octokit
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public Task<IReadOnlyList<User>> GetAllForRepository(int repositoryId) public Task<IReadOnlyList<User>> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -63,7 +63,7 @@ namespace Octokit
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="options">The options to change API's response.</param> /// <param name="options">The options to change API's response.</param>
public Task<IReadOnlyList<User>> GetAllForRepository(int repositoryId, ApiOptions options) public Task<IReadOnlyList<User>> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -100,7 +100,7 @@ namespace Octokit
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="assignee">Username of the prospective assignee</param> /// <param name="assignee">Username of the prospective assignee</param>
public async Task<bool> CheckAssignee(int repositoryId, string assignee) public async Task<bool> CheckAssignee(long repositoryId, string assignee)
{ {
Ensure.ArgumentNotNullOrEmptyString(assignee, "assignee"); Ensure.ArgumentNotNullOrEmptyString(assignee, "assignee");

View File

@@ -45,7 +45,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The SHA of the blob</param> /// <param name="reference">The SHA of the blob</param>
public Task<Blob> Get(int repositoryId, string reference) public Task<Blob> Get(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -78,7 +78,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newBlob">The new Blob</param> /// <param name="newBlob">The new Blob</param>
public Task<BlobReference> Create(int repositoryId, NewBlob newBlob) public Task<BlobReference> Create(long repositoryId, NewBlob newBlob)
{ {
Ensure.ArgumentNotNull(newBlob, "newBlob"); Ensure.ArgumentNotNull(newBlob, "newBlob");

View File

@@ -42,7 +42,7 @@ namespace Octokit
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create</param> /// <param name="reaction">The reaction to create</param>
/// <returns></returns> /// <returns></returns>
public Task<Reaction> Create(int repositoryId, int number, NewReaction reaction) public Task<Reaction> Create(long repositoryId, int number, NewReaction reaction)
{ {
Ensure.ArgumentNotNull(reaction, "reaction"); Ensure.ArgumentNotNull(reaction, "reaction");
@@ -72,7 +72,7 @@ namespace Octokit
/// <param name="repositoryId">The owner of the repository</param> /// <param name="repositoryId">The owner of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <returns></returns> /// <returns></returns>
public Task<IReadOnlyList<Reaction>> GetAll(int repositoryId, int number) public Task<IReadOnlyList<Reaction>> GetAll(long repositoryId, int number)
{ {
return ApiConnection.GetAll<Reaction>(ApiUrls.CommitCommentReactions(repositoryId, number), AcceptHeaders.ReactionsPreview); return ApiConnection.GetAll<Reaction>(ApiUrls.CommitCommentReactions(repositoryId, number), AcceptHeaders.ReactionsPreview);
} }

View File

@@ -47,7 +47,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
public Task<IReadOnlyList<CommitStatus>> GetAll(int repositoryId, string reference) public Task<IReadOnlyList<CommitStatus>> GetAll(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -85,7 +85,7 @@ namespace Octokit
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public Task<IReadOnlyList<CommitStatus>> GetAll(int repositoryId, string reference, ApiOptions options) public Task<IReadOnlyList<CommitStatus>> GetAll(long repositoryId, string reference, ApiOptions options)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -121,7 +121,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
public Task<CombinedCommitStatus> GetCombined(int repositoryId, string reference) public Task<CombinedCommitStatus> GetCombined(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -157,7 +157,7 @@ namespace Octokit
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param> /// <param name="reference">The reference (SHA, branch name, or tag name) to list commits for</param>
/// <param name="newCommitStatus">The commit status to create</param> /// <param name="newCommitStatus">The commit status to create</param>
public Task<CommitStatus> Create(int repositoryId, string reference, NewCommitStatus newCommitStatus) public Task<CommitStatus> Create(long repositoryId, string reference, NewCommitStatus newCommitStatus)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
Ensure.ArgumentNotNull(newCommitStatus, "newCommitStatus"); Ensure.ArgumentNotNull(newCommitStatus, "newCommitStatus");

View File

@@ -45,7 +45,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">Tha sha reference of the commit</param> /// <param name="reference">Tha sha reference of the commit</param>
public Task<Commit> Get(int repositoryId, string reference) public Task<Commit> Get(long repositoryId, string reference)
{ {
Ensure.ArgumentNotNullOrEmptyString(reference, "reference"); Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
@@ -78,7 +78,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="commit">The commit to create</param> /// <param name="commit">The commit to create</param>
public Task<Commit> Create(int repositoryId, NewCommit commit) public Task<Commit> Create(long repositoryId, NewCommit commit)
{ {
Ensure.ArgumentNotNull(commit, "commit"); Ensure.ArgumentNotNull(commit, "commit");

View File

@@ -44,7 +44,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
public Task<IReadOnlyList<DeploymentStatus>> GetAll(int repositoryId, int deploymentId) public Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, int deploymentId)
{ {
return GetAll(repositoryId, deploymentId, ApiOptions.None); return GetAll(repositoryId, deploymentId, ApiOptions.None);
} }
@@ -82,7 +82,7 @@ namespace Octokit
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
/// <param name="options">Options for changing the API response</param> /// <param name="options">Options for changing the API response</param>
public Task<IReadOnlyList<DeploymentStatus>> GetAll(int repositoryId, int deploymentId, ApiOptions options) public Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, int deploymentId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -121,7 +121,7 @@ namespace Octokit
/// <param name="repositoryId">The Id of the repository.</param> /// <param name="repositoryId">The Id of the repository.</param>
/// <param name="deploymentId">The id of the deployment.</param> /// <param name="deploymentId">The id of the deployment.</param>
/// <param name="newDeploymentStatus">The new deployment status to create.</param> /// <param name="newDeploymentStatus">The new deployment status to create.</param>
public Task<DeploymentStatus> Create(int repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus) public Task<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus)
{ {
Ensure.ArgumentNotNull(newDeploymentStatus, "newDeploymentStatus"); Ensure.ArgumentNotNull(newDeploymentStatus, "newDeploymentStatus");

View File

@@ -47,7 +47,7 @@ namespace Octokit
/// http://developer.github.com/v3/repos/deployments/#list-deployments /// http://developer.github.com/v3/repos/deployments/#list-deployments
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public Task<IReadOnlyList<Deployment>> GetAll(int repositoryId) public Task<IReadOnlyList<Deployment>> GetAll(long repositoryId)
{ {
return GetAll(repositoryId, ApiOptions.None); return GetAll(repositoryId, ApiOptions.None);
} }
@@ -83,7 +83,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public Task<IReadOnlyList<Deployment>> GetAll(int repositoryId, ApiOptions options) public Task<IReadOnlyList<Deployment>> GetAll(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -120,7 +120,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newDeployment">A <see cref="NewDeployment"/> instance describing the new deployment to create</param> /// <param name="newDeployment">A <see cref="NewDeployment"/> instance describing the new deployment to create</param>
public Task<Deployment> Create(int repositoryId, NewDeployment newDeployment) public Task<Deployment> Create(long repositoryId, NewDeployment newDeployment)
{ {
Ensure.ArgumentNotNull(newDeployment, "newDeployment"); Ensure.ArgumentNotNull(newDeployment, "newDeployment");

View File

@@ -69,7 +69,7 @@ namespace Octokit
/// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository /// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public Task<IReadOnlyList<Activity>> GetAllForRepository(int repositoryId) public Task<IReadOnlyList<Activity>> GetAllForRepository(long repositoryId)
{ {
return GetAllForRepository(repositoryId, ApiOptions.None); return GetAllForRepository(repositoryId, ApiOptions.None);
} }
@@ -100,7 +100,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public Task<IReadOnlyList<Activity>> GetAllForRepository(int repositoryId, ApiOptions options) public Task<IReadOnlyList<Activity>> GetAllForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");
@@ -130,7 +130,7 @@ namespace Octokit
/// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository /// http://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
public Task<IReadOnlyList<Activity>> GetAllIssuesForRepository(int repositoryId) public Task<IReadOnlyList<Activity>> GetAllIssuesForRepository(long repositoryId)
{ {
return GetAllIssuesForRepository(repositoryId, ApiOptions.None); return GetAllIssuesForRepository(repositoryId, ApiOptions.None);
} }
@@ -161,7 +161,7 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <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>
public Task<IReadOnlyList<Activity>> GetAllIssuesForRepository(int repositoryId, ApiOptions options) public Task<IReadOnlyList<Activity>> GetAllIssuesForRepository(long repositoryId, ApiOptions options)
{ {
Ensure.ArgumentNotNull(options, "options"); Ensure.ArgumentNotNull(options, "options");

View File

@@ -22,7 +22,7 @@ namespace Octokit
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
Task<IReadOnlyList<User>> GetAllForRepository(int repositoryId); Task<IReadOnlyList<User>> GetAllForRepository(long repositoryId);
/// <summary> /// <summary>
/// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
@@ -37,7 +37,7 @@ namespace Octokit
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="options">The options to change API's response.</param> /// <param name="options">The options to change API's response.</param>
Task<IReadOnlyList<User>> GetAllForRepository(int repositoryId, ApiOptions options); Task<IReadOnlyList<User>> GetAllForRepository(long repositoryId, ApiOptions options);
/// <summary> /// <summary>
/// Checks to see if a user is an assignee for a repository. /// Checks to see if a user is an assignee for a repository.
@@ -52,6 +52,6 @@ namespace Octokit
/// </summary> /// </summary>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="assignee">Username of the prospective assignee</param> /// <param name="assignee">Username of the prospective assignee</param>
Task<bool> CheckAssignee(int repositoryId, string assignee); Task<bool> CheckAssignee(long repositoryId, string assignee);
} }
} }

View File

@@ -31,7 +31,7 @@ namespace Octokit
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="reference">The SHA of the blob</param> /// <param name="reference">The SHA of the blob</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
Task<Blob> Get(int repositoryId, string reference); Task<Blob> Get(long repositoryId, string reference);
/// <summary> /// <summary>
/// Creates a new Blob /// Creates a new Blob
@@ -52,6 +52,6 @@ namespace Octokit
/// </remarks> /// </remarks>
/// <param name="repositoryId">The Id of the repository</param> /// <param name="repositoryId">The Id of the repository</param>
/// <param name="newBlob">The new Blob</param> /// <param name="newBlob">The new Blob</param>
Task<BlobReference> Create(int repositoryId, NewBlob newBlob); Task<BlobReference> Create(long repositoryId, NewBlob newBlob);
} }
} }

View File

@@ -30,7 +30,7 @@ namespace Octokit
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create</param> /// <param name="reaction">The reaction to create</param>
/// <returns></returns> /// <returns></returns>
Task<Reaction> Create(int repositoryId, int number, NewReaction reaction); Task<Reaction> Create(long repositoryId, int number, NewReaction reaction);
/// <summary> /// <summary>
/// Get all reactions for a specified Commit Comment /// Get all reactions for a specified Commit Comment
@@ -49,6 +49,6 @@ namespace Octokit
/// <param name="repositoryId">The owner of the repository</param> /// <param name="repositoryId">The owner of the repository</param>
/// <param name="number">The comment id</param> /// <param name="number">The comment id</param>
/// <returns></returns> /// <returns></returns>
Task<IReadOnlyList<Reaction>> GetAll(int repositoryId, int number); Task<IReadOnlyList<Reaction>> GetAll(long repositoryId, int number);
} }
} }

Some files were not shown because too many files have changed in this diff Show More