diff --git a/Octokit.Reactive/Clients/IObservableCommitCommentReactionsClient.cs b/Octokit.Reactive/Clients/IObservableCommitCommentReactionsClient.cs
index e76acd4dde..0e4c36d480 100644
--- a/Octokit.Reactive/Clients/IObservableCommitCommentReactionsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableCommitCommentReactionsClient.cs
@@ -17,20 +17,20 @@ public interface IObservableCommitCommentReactionsClient
/// https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
///
- IObservable Create(string owner, string name, int number, NewReaction reaction);
+ IObservable Create(string owner, string name, long commentId, NewReaction reaction);
///
/// Creates a reaction for a specified Commit Comment
///
/// https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
///
- IObservable Create(long repositoryId, int number, NewReaction reaction);
+ IObservable Create(long repositoryId, long commentId, NewReaction reaction);
///
/// List reactions for a specified Commit Comment
@@ -38,9 +38,9 @@ public interface IObservableCommitCommentReactionsClient
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
///
- IObservable GetAll(string owner, string name, int number);
+ IObservable GetAll(string owner, string name, long commentId);
///
/// List reactions for a specified Commit Comment
@@ -48,29 +48,29 @@ public interface IObservableCommitCommentReactionsClient
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
///
- IObservable GetAll(string owner, string name, int number, ApiOptions options);
+ IObservable GetAll(string owner, string name, long commentId, ApiOptions options);
///
/// List reactions for a specified Commit Comment
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
/// The owner of the repository
- /// The comment id
+ /// The comment id
///
- IObservable GetAll(long repositoryId, int number);
+ IObservable GetAll(long repositoryId, long commentId);
///
/// List reactions for a specified Commit Comment
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
/// The owner of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
///
- IObservable GetAll(long repositoryId, int number, ApiOptions options);
+ IObservable GetAll(long repositoryId, long commentId, ApiOptions options);
///
/// Deletes a reaction for a specified Commit Comment
@@ -81,7 +81,7 @@ public interface IObservableCommitCommentReactionsClient
/// The comment id
/// The reaction id
///
- IObservable Delete(string owner, string name, int commentId, int reactionId);
+ IObservable Delete(string owner, string name, long commentId, long reactionId);
///
/// Deletes a reaction for a specified Commit Comment
@@ -91,6 +91,6 @@ public interface IObservableCommitCommentReactionsClient
/// The comment id
/// The reaction id
///
- IObservable Delete(long repositoryId, int commentId, int reactionId);
+ IObservable Delete(long repositoryId, long commentId, long reactionId);
}
}
diff --git a/Octokit.Reactive/Clients/IObservableGistCommentsClient.cs b/Octokit.Reactive/Clients/IObservableGistCommentsClient.cs
index ea817b2f89..aa1061615e 100644
--- a/Octokit.Reactive/Clients/IObservableGistCommentsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableGistCommentsClient.cs
@@ -15,7 +15,7 @@ public interface IObservableGistCommentsClient
/// IObservable{GistComment}.
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
- IObservable Get(string gistId, int commentId);
+ IObservable Get(string gistId, long commentId);
///
/// Gets all comments for the gist with the specified id.
@@ -51,7 +51,7 @@ public interface IObservableGistCommentsClient
/// The id of the comment
/// The updated body of the comment
/// IObservable{GistComment}.
- IObservable Update(string gistId, int commentId, string comment);
+ IObservable Update(string gistId, long commentId, string comment);
///
/// Deletes the comment with the specified gist- and comment id.
@@ -60,6 +60,6 @@ public interface IObservableGistCommentsClient
/// The id of the gist
/// The id of the comment
/// IObservable{Unit}.
- IObservable Delete(string gistId, int commentId);
+ IObservable Delete(string gistId, long commentId);
}
}
\ No newline at end of file
diff --git a/Octokit.Reactive/Clients/IObservableIssueCommentReactionsClient.cs b/Octokit.Reactive/Clients/IObservableIssueCommentReactionsClient.cs
index 22f74fbdc3..39bdc62a60 100644
--- a/Octokit.Reactive/Clients/IObservableIssueCommentReactionsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableIssueCommentReactionsClient.cs
@@ -17,18 +17,18 @@ public interface IObservableIssueCommentReactionsClient
/// https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
- IObservable Create(string owner, string name, int number, NewReaction reaction);
+ IObservable Create(string owner, string name, long commentId, NewReaction reaction);
///
/// Creates a reaction for a specified Issue Comment
///
/// https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
- IObservable Create(long repositoryId, int number, NewReaction reaction);
+ IObservable Create(long repositoryId, long commentId, NewReaction reaction);
///
/// List reactions for a specified Issue Comment
@@ -36,8 +36,8 @@ public interface IObservableIssueCommentReactionsClient
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
- IObservable GetAll(string owner, string name, int number);
+ /// The comment id
+ IObservable GetAll(string owner, string name, long commentId);
///
/// List reactions for a specified Issue Comment
@@ -45,26 +45,26 @@ public interface IObservableIssueCommentReactionsClient
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
- IObservable GetAll(string owner, string name, int number, ApiOptions options);
+ IObservable GetAll(string owner, string name, long commentId, ApiOptions options);
///
/// List reactions for a specified Issue Comment
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment
/// The Id of the repository
- /// The comment id
- IObservable GetAll(long repositoryId, int number);
+ /// The comment id
+ IObservable GetAll(long repositoryId, long commentId);
///
/// List reactions for a specified Issue Comment
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
- IObservable GetAll(long repositoryId, int number, ApiOptions options);
+ IObservable GetAll(long repositoryId, long commentId, ApiOptions options);
///
/// Deletes a reaction for a specified Issue Comment
@@ -75,7 +75,7 @@ public interface IObservableIssueCommentReactionsClient
/// The comment id
/// The reaction id
///
- IObservable Delete(string owner, string name, int commentId, int reactionId);
+ IObservable Delete(string owner, string name, long commentId, long reactionId);
///
/// Deletes a reaction for a specified Commit Comment
@@ -85,6 +85,6 @@ public interface IObservableIssueCommentReactionsClient
/// The comment id
/// The reaction id
///
- IObservable Delete(long repositoryId, int commentId, int reactionId);
+ IObservable Delete(long repositoryId, long commentId, long reactionId);
}
}
diff --git a/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs b/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs
index 0744d57a17..110515f220 100644
--- a/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableIssueCommentsClient.cs
@@ -18,20 +18,20 @@ public interface IObservableIssueCommentsClient
/// http://developer.github.com/v3/issues/comments/#get-a-single-comment
/// The owner of the repository
/// The name of the repository
- /// The issue comment id
+ /// The issue comment id
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
- IObservable Get(string owner, string name, int id);
+ IObservable Get(string owner, string name, long commentId);
///
/// Gets a single Issue Comment by id.
///
/// http://developer.github.com/v3/issues/comments/#get-a-single-comment
/// The Id of the repository
- /// The issue comment id
+ /// The issue comment id
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
- IObservable Get(long repositoryId, int id);
+ IObservable Get(long repositoryId, long commentId);
///
/// Gets Issue Comments for a repository.
@@ -202,18 +202,18 @@ public interface IObservableIssueCommentsClient
/// http://developer.github.com/v3/issues/comments/#edit-a-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// The modified comment
- IObservable Update(string owner, string name, int id, string commentUpdate);
+ IObservable Update(string owner, string name, long commentId, string commentUpdate);
///
/// Updates a specified Issue Comment.
///
/// http://developer.github.com/v3/issues/comments/#edit-a-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// The modified comment
- IObservable Update(long repositoryId, int id, string commentUpdate);
+ IObservable Update(long repositoryId, long commentId, string commentUpdate);
///
/// Deletes the specified Issue Comment
@@ -221,15 +221,15 @@ public interface IObservableIssueCommentsClient
/// http://developer.github.com/v3/issues/comments/#delete-a-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
- IObservable Delete(string owner, string name, int id);
+ /// The comment id
+ IObservable Delete(string owner, string name, long commentId);
///
/// Deletes the specified Issue Comment
///
/// http://developer.github.com/v3/issues/comments/#delete-a-comment
/// The Id of the repository
- /// The comment id
- IObservable Delete(long repositoryId, int id);
+ /// The comment id
+ IObservable Delete(long repositoryId, long commentId);
}
}
diff --git a/Octokit.Reactive/Clients/IObservableIssueReactionsClient.cs b/Octokit.Reactive/Clients/IObservableIssueReactionsClient.cs
index c8b3baa623..cb04b6d85c 100644
--- a/Octokit.Reactive/Clients/IObservableIssueReactionsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableIssueReactionsClient.cs
@@ -75,7 +75,7 @@ public interface IObservableIssueReactionsClient
/// The issue number
/// The reaction id
///
- IObservable Delete(string owner, string name, int issueNumber, int reactionId);
+ IObservable Delete(string owner, string name, int issueNumber, long reactionId);
///
/// Deletes a reaction for a specified Issue
@@ -85,6 +85,6 @@ public interface IObservableIssueReactionsClient
/// The issue number
/// The reaction id
///
- IObservable Delete(long repositoryId, int issueNumber, int reactionId);
+ IObservable Delete(long repositoryId, int issueNumber, long reactionId);
}
}
diff --git a/Octokit.Reactive/Clients/IObservablePullRequestReviewCommentReactionsClient.cs b/Octokit.Reactive/Clients/IObservablePullRequestReviewCommentReactionsClient.cs
index 4fdf13a006..18ee928b42 100644
--- a/Octokit.Reactive/Clients/IObservablePullRequestReviewCommentReactionsClient.cs
+++ b/Octokit.Reactive/Clients/IObservablePullRequestReviewCommentReactionsClient.cs
@@ -17,8 +17,8 @@ public interface IObservablePullRequestReviewCommentReactionsClient
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
- IObservable GetAll(string owner, string name, int number);
+ /// The comment id
+ IObservable GetAll(string owner, string name, long commentId);
///
/// Get all reactions for a specified Pull Request Review Comment.
@@ -26,26 +26,26 @@ public interface IObservablePullRequestReviewCommentReactionsClient
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
- IObservable GetAll(string owner, string name, int number, ApiOptions options);
+ IObservable GetAll(string owner, string name, long commentId, ApiOptions options);
///
/// Get all reactions for a specified Pull Request Review Comment.
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment
/// The Id of the repository
- /// The comment id
- IObservable GetAll(long repositoryId, int number);
+ /// The comment id
+ IObservable GetAll(long repositoryId, long commentId);
///
/// Get all reactions for a specified Pull Request Review Comment.
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
- IObservable GetAll(long repositoryId, int number, ApiOptions options);
+ IObservable GetAll(long repositoryId, long commentId, ApiOptions options);
///
/// Creates a reaction for a specified Pull Request Review Comment.
@@ -53,18 +53,18 @@ public interface IObservablePullRequestReviewCommentReactionsClient
/// https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
- IObservable Create(string owner, string name, int number, NewReaction reaction);
+ IObservable Create(string owner, string name, long commentId, NewReaction reaction);
///
/// Creates a reaction for a specified Pull Request Review Comment.
///
/// https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment
/// The owner of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
- IObservable Create(long repositoryId, int number, NewReaction reaction);
+ IObservable Create(long repositoryId, long commentId, NewReaction reaction);
///
/// Deletes a reaction for a specified Pull Request comment
@@ -75,7 +75,7 @@ public interface IObservablePullRequestReviewCommentReactionsClient
/// The comment id
/// The reaction id
///
- IObservable Delete(string owner, string name, int commentId, int reactionId);
+ IObservable Delete(string owner, string name, long commentId, long reactionId);
///
/// Deletes a reaction for a specified Pull Request comment
@@ -85,6 +85,6 @@ public interface IObservablePullRequestReviewCommentReactionsClient
/// The comment id
/// The reaction id
///
- IObservable Delete(long repositoryId, int commentId, int reactionId);
+ IObservable Delete(long repositoryId, long commentId, long reactionId);
}
}
diff --git a/Octokit.Reactive/Clients/IObservablePullRequestReviewCommentsClient.cs b/Octokit.Reactive/Clients/IObservablePullRequestReviewCommentsClient.cs
index deefcc82d8..bb78ce430b 100644
--- a/Octokit.Reactive/Clients/IObservablePullRequestReviewCommentsClient.cs
+++ b/Octokit.Reactive/Clients/IObservablePullRequestReviewCommentsClient.cs
@@ -121,16 +121,16 @@ public interface IObservablePullRequestReviewCommentsClient
/// http://developer.github.com/v3/pulls/comments/#get-a-single-comment
/// The owner of the repository
/// The name of the repository
- /// The pull request review comment number
- IObservable GetComment(string owner, string name, int number);
+ /// The pull request review comment id
+ IObservable GetComment(string owner, string name, long commentId);
///
/// Gets a single pull request review comment by number.
///
/// http://developer.github.com/v3/pulls/comments/#get-a-single-comment
/// The Id of the repository
- /// The pull request review comment number
- IObservable GetComment(long repositoryId, int number);
+ /// The pull request review comment id
+ IObservable GetComment(long repositoryId, long commentId);
///
/// Creates a comment on a pull request review.
@@ -176,18 +176,18 @@ public interface IObservablePullRequestReviewCommentsClient
/// http://developer.github.com/v3/pulls/comments/#edit-a-comment
/// The owner of the repository
/// The name of the repository
- /// The pull request review comment number
+ /// The pull request review comment id
/// The edited comment
- IObservable Edit(string owner, string name, int number, PullRequestReviewCommentEdit comment);
+ IObservable Edit(string owner, string name, long commentId, PullRequestReviewCommentEdit comment);
///
/// Edits a comment on a pull request review.
///
/// http://developer.github.com/v3/pulls/comments/#edit-a-comment
/// The Id of the repository
- /// The pull request review comment number
+ /// The pull request review comment id
/// The edited comment
- IObservable Edit(long repositoryId, int number, PullRequestReviewCommentEdit comment);
+ IObservable Edit(long repositoryId, long commentId, PullRequestReviewCommentEdit comment);
///
/// Deletes a comment on a pull request review.
@@ -195,15 +195,15 @@ public interface IObservablePullRequestReviewCommentsClient
/// http://developer.github.com/v3/pulls/comments/#delete-a-comment
/// The owner of the repository
/// The name of the repository
- /// The pull request review comment number
- IObservable Delete(string owner, string name, int number);
+ /// The pull request review comment id
+ IObservable Delete(string owner, string name, long commentId);
///
/// Deletes a comment on a pull request review.
///
/// http://developer.github.com/v3/pulls/comments/#delete-a-comment
/// The Id of the repository
- /// The pull request review comment number
- IObservable Delete(long repositoryId, int number);
+ /// The pull request review comment id
+ IObservable Delete(long repositoryId, long commentId);
}
}
diff --git a/Octokit.Reactive/Clients/IObservableRepositoryCommentsClient.cs b/Octokit.Reactive/Clients/IObservableRepositoryCommentsClient.cs
index 261ea009d1..11e2d6d318 100644
--- a/Octokit.Reactive/Clients/IObservableRepositoryCommentsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableRepositoryCommentsClient.cs
@@ -18,20 +18,20 @@ public interface IObservableRepositoryCommentsClient
/// http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
- IObservable Get(string owner, string name, int number);
+ IObservable Get(string owner, string name, long commentId);
///
/// Gets a single Repository Comment by number.
///
/// http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
Justification = "Method makes a network request")]
- IObservable Get(long repositoryId, int number);
+ IObservable Get(long repositoryId, long commentId);
///
/// Gets Commit Comments for a repository.
@@ -126,18 +126,18 @@ public interface IObservableRepositoryCommentsClient
/// http://developer.github.com/v3/repos/comments/#update-a-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment number
+ /// The comment id
/// The modified comment
- IObservable Update(string owner, string name, int number, string commentUpdate);
+ IObservable Update(string owner, string name, long commentId, string commentUpdate);
///
/// Updates a specified Commit Comment.
///
/// http://developer.github.com/v3/repos/comments/#update-a-commit-comment
/// The Id of the repository
- /// The comment number
+ /// The comment id
/// The modified comment
- IObservable Update(long repositoryId, int number, string commentUpdate);
+ IObservable Update(long repositoryId, long commentId, string commentUpdate);
///
/// Deletes the specified Commit Comment
@@ -145,15 +145,15 @@ public interface IObservableRepositoryCommentsClient
/// http://developer.github.com/v3/repos/comments/#delete-a-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
- IObservable Delete(string owner, string name, int number);
+ /// The comment id
+ IObservable Delete(string owner, string name, long commentId);
///
/// Deletes the specified Commit Comment
///
/// http://developer.github.com/v3/repos/comments/#delete-a-commit-comment
/// The Id of the repository
- /// The comment id
- IObservable Delete(long repositoryId, int number);
+ /// The comment id
+ IObservable Delete(long repositoryId, long commentId);
}
}
diff --git a/Octokit.Reactive/Clients/ObservableCommitCommentReactionsClient.cs b/Octokit.Reactive/Clients/ObservableCommitCommentReactionsClient.cs
index 36400e8723..17a3f030a6 100644
--- a/Octokit.Reactive/Clients/ObservableCommitCommentReactionsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableCommitCommentReactionsClient.cs
@@ -30,16 +30,16 @@ public ObservableCommitCommentReactionsClient(IGitHubClient client)
/// https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
///
- public IObservable Create(string owner, string name, int number, NewReaction reaction)
+ public IObservable Create(string owner, string name, long commentId, NewReaction reaction)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(reaction, nameof(reaction));
- return _client.Create(owner, name, number, reaction).ToObservable();
+ return _client.Create(owner, name, commentId, reaction).ToObservable();
}
///
@@ -47,14 +47,14 @@ public IObservable Create(string owner, string name, int number, NewRe
///
/// https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
///
- public IObservable Create(long repositoryId, int number, NewReaction reaction)
+ public IObservable Create(long repositoryId, long commentId, NewReaction reaction)
{
Ensure.ArgumentNotNull(reaction, nameof(reaction));
- return _client.Create(repositoryId, number, reaction).ToObservable();
+ return _client.Create(repositoryId, commentId, reaction).ToObservable();
}
///
@@ -63,11 +63,11 @@ public IObservable Create(long repositoryId, int number, NewReaction r
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
///
- public IObservable GetAll(string owner, string name, int number)
+ public IObservable GetAll(string owner, string name, long commentId)
{
- return GetAll(owner, name, number, ApiOptions.None);
+ return GetAll(owner, name, commentId, ApiOptions.None);
}
///
@@ -76,16 +76,16 @@ public IObservable GetAll(string owner, string name, int number)
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
///
- public IObservable GetAll(string owner, string name, int number, ApiOptions options)
+ public IObservable GetAll(string owner, string name, long commentId, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(options, nameof(options));
- return _connection.GetAndFlattenAllPages(ApiUrls.CommitCommentReactions(owner, name, number), null, options);
+ return _connection.GetAndFlattenAllPages(ApiUrls.CommitCommentReactions(owner, name, commentId), null, options);
}
///
@@ -93,11 +93,11 @@ public IObservable GetAll(string owner, string name, int number, ApiOp
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
/// The owner of the repository
- /// The comment id
+ /// The comment id
///
- public IObservable GetAll(long repositoryId, int number)
+ public IObservable GetAll(long repositoryId, long commentId)
{
- return GetAll(repositoryId, number, ApiOptions.None);
+ return GetAll(repositoryId, commentId, ApiOptions.None);
}
///
@@ -105,14 +105,14 @@ public IObservable GetAll(long repositoryId, int number)
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment
/// The owner of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
///
- public IObservable GetAll(long repositoryId, int number, ApiOptions options)
+ public IObservable GetAll(long repositoryId, long commentId, ApiOptions options)
{
Ensure.ArgumentNotNull(options, nameof(options));
- return _connection.GetAndFlattenAllPages(ApiUrls.CommitCommentReactions(repositoryId, number), null, options);
+ return _connection.GetAndFlattenAllPages(ApiUrls.CommitCommentReactions(repositoryId, commentId), null, options);
}
///
@@ -124,7 +124,7 @@ public IObservable GetAll(long repositoryId, int number, ApiOptions op
/// The comment id
/// The reaction id
///
- public IObservable Delete(string owner, string name, int commentId, int reactionId)
+ public IObservable Delete(string owner, string name, long commentId, long reactionId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
@@ -139,13 +139,13 @@ public IObservable Delete(string owner, string name, int commentId, int re
/// https://docs.github.com/rest/reactions#delete-a-commit-comment-reaction
/// The Id of the repository
/// The comment id
- /// The reaction id
+ /// The reaction id
///
- public IObservable Delete(long repositoryId, int commentId, int reactionid)
+ public IObservable Delete(long repositoryId, long commentId, long reactionId)
{
- Ensure.ArgumentNotNull(reactionid, nameof(reactionid));
+ Ensure.ArgumentNotNull(reactionId, nameof(reactionId));
- return _client.Delete(repositoryId, commentId, reactionid).ToObservable();
+ return _client.Delete(repositoryId, commentId, reactionId).ToObservable();
}
}
}
diff --git a/Octokit.Reactive/Clients/ObservableGistCommentsClient.cs b/Octokit.Reactive/Clients/ObservableGistCommentsClient.cs
index ac16b247eb..7aefce8171 100644
--- a/Octokit.Reactive/Clients/ObservableGistCommentsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableGistCommentsClient.cs
@@ -25,7 +25,7 @@ public ObservableGistCommentsClient(IGitHubClient client)
/// The id of the gist
/// The id of the comment
/// IObservable{GistComment}.
- public IObservable Get(string gistId, int commentId)
+ public IObservable Get(string gistId, long commentId)
{
return _client.Get(gistId, commentId).ToObservable();
}
@@ -80,7 +80,7 @@ public IObservable Create(string gistId, string comment)
/// The id of the comment
/// The updated body of the comment
/// IObservable{GistComment}.
- public IObservable Update(string gistId, int commentId, string comment)
+ public IObservable Update(string gistId, long commentId, string comment)
{
Ensure.ArgumentNotNullOrEmptyString(comment, nameof(comment));
@@ -94,7 +94,7 @@ public IObservable Update(string gistId, int commentId, string comm
/// The id of the gist
/// The id of the comment
/// IObservable{Unit}.
- public IObservable Delete(string gistId, int commentId)
+ public IObservable Delete(string gistId, long commentId)
{
return _client.Delete(gistId, commentId).ToObservable();
}
diff --git a/Octokit.Reactive/Clients/ObservableIssueCommentReactionsClient.cs b/Octokit.Reactive/Clients/ObservableIssueCommentReactionsClient.cs
index 747e5c3f4b..bf348de66b 100644
--- a/Octokit.Reactive/Clients/ObservableIssueCommentReactionsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableIssueCommentReactionsClient.cs
@@ -30,15 +30,15 @@ public ObservableIssueCommentReactionsClient(IGitHubClient client)
/// https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
- public IObservable Create(string owner, string name, int number, NewReaction reaction)
+ public IObservable Create(string owner, string name, long commentId, NewReaction reaction)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(reaction, nameof(reaction));
- return _client.Create(owner, name, number, reaction).ToObservable();
+ return _client.Create(owner, name, commentId, reaction).ToObservable();
}
///
@@ -46,13 +46,13 @@ public IObservable Create(string owner, string name, int number, NewRe
///
/// https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
- public IObservable Create(long repositoryId, int number, NewReaction reaction)
+ public IObservable Create(long repositoryId, long commentId, NewReaction reaction)
{
Ensure.ArgumentNotNull(reaction, nameof(reaction));
- return _client.Create(repositoryId, number, reaction).ToObservable();
+ return _client.Create(repositoryId, commentId, reaction).ToObservable();
}
///
@@ -61,13 +61,13 @@ public IObservable Create(long repositoryId, int number, NewReaction r
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
- public IObservable GetAll(string owner, string name, int number)
+ /// The comment id
+ public IObservable GetAll(string owner, string name, long commentId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
- return GetAll(owner, name, number, ApiOptions.None);
+ return GetAll(owner, name, commentId, ApiOptions.None);
}
///
@@ -76,15 +76,15 @@ public IObservable GetAll(string owner, string name, int number)
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
- public IObservable GetAll(string owner, string name, int number, ApiOptions options)
+ public IObservable GetAll(string owner, string name, long commentId, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(options, nameof(options));
- return _connection.GetAndFlattenAllPages(ApiUrls.IssueCommentReactions(owner, name, number), null, options);
+ return _connection.GetAndFlattenAllPages(ApiUrls.IssueCommentReactions(owner, name, commentId), null, options);
}
///
@@ -92,10 +92,10 @@ public IObservable GetAll(string owner, string name, int number, ApiOp
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment
/// The Id of the repository
- /// The comment id
- public IObservable GetAll(long repositoryId, int number)
+ /// The comment id
+ public IObservable GetAll(long repositoryId, long commentId)
{
- return GetAll(repositoryId, number, ApiOptions.None);
+ return GetAll(repositoryId, commentId, ApiOptions.None);
}
///
@@ -103,13 +103,13 @@ public IObservable GetAll(long repositoryId, int number)
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
- public IObservable GetAll(long repositoryId, int number, ApiOptions options)
+ public IObservable GetAll(long repositoryId, long commentId, ApiOptions options)
{
Ensure.ArgumentNotNull(options, nameof(options));
- return _connection.GetAndFlattenAllPages(ApiUrls.IssueCommentReactions(repositoryId, number), null, options);
+ return _connection.GetAndFlattenAllPages(ApiUrls.IssueCommentReactions(repositoryId, commentId), null, options);
}
///
@@ -121,7 +121,7 @@ public IObservable GetAll(long repositoryId, int number, ApiOptions op
/// The comment id
/// The reaction id
///
- public IObservable Delete(string owner, string name, int commentId, int reactionId)
+ public IObservable Delete(string owner, string name, long commentId, long reactionId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
@@ -138,7 +138,7 @@ public IObservable Delete(string owner, string name, int commentId, int re
/// The comment id
/// The reaction id
///
- public IObservable Delete(long repositoryId, int commentId, int reactionId)
+ public IObservable Delete(long repositoryId, long commentId, long reactionId)
{
Ensure.ArgumentNotNull(reactionId, nameof(reactionId));
diff --git a/Octokit.Reactive/Clients/ObservableIssueCommentsClient.cs b/Octokit.Reactive/Clients/ObservableIssueCommentsClient.cs
index fde616445a..b7b1daedbe 100644
--- a/Octokit.Reactive/Clients/ObservableIssueCommentsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableIssueCommentsClient.cs
@@ -30,13 +30,13 @@ public ObservableIssueCommentsClient(IGitHubClient client)
/// http://developer.github.com/v3/issues/comments/#get-a-single-comment
/// The owner of the repository
/// The name of the repository
- /// The issue comment id
- public IObservable Get(string owner, string name, int id)
+ /// The issue comment id
+ public IObservable Get(string owner, string name, long commentId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
- return _client.Get(owner, name, id).ToObservable();
+ return _client.Get(owner, name, commentId).ToObservable();
}
///
@@ -44,10 +44,10 @@ public IObservable Get(string owner, string name, int id)
///
/// http://developer.github.com/v3/issues/comments/#get-a-single-comment
/// The Id of the repository
- /// The issue comment id
- public IObservable Get(long repositoryId, int id)
+ /// The issue comment id
+ public IObservable Get(long repositoryId, long commentId)
{
- return _client.Get(repositoryId, id).ToObservable();
+ return _client.Get(repositoryId, commentId).ToObservable();
}
///
@@ -326,15 +326,15 @@ public IObservable Create(long repositoryId, int number, string ne
/// http://developer.github.com/v3/issues/comments/#edit-a-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// The modified comment
- public IObservable Update(string owner, string name, int id, string commentUpdate)
+ public IObservable Update(string owner, string name, long commentId, string commentUpdate)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate));
- return _client.Update(owner, name, id, commentUpdate).ToObservable();
+ return _client.Update(owner, name, commentId, commentUpdate).ToObservable();
}
///
@@ -342,13 +342,13 @@ public IObservable Update(string owner, string name, int id, strin
///
/// http://developer.github.com/v3/issues/comments/#edit-a-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// The modified comment
- public IObservable Update(long repositoryId, int id, string commentUpdate)
+ public IObservable Update(long repositoryId, long commentId, string commentUpdate)
{
Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate));
- return _client.Update(repositoryId, id, commentUpdate).ToObservable();
+ return _client.Update(repositoryId, commentId, commentUpdate).ToObservable();
}
///
@@ -357,13 +357,13 @@ public IObservable Update(long repositoryId, int id, string commen
/// http://developer.github.com/v3/issues/comments/#delete-a-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
- public IObservable Delete(string owner, string name, int id)
+ /// The comment id
+ public IObservable Delete(string owner, string name, long commentId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
- return _client.Delete(owner, name, id).ToObservable();
+ return _client.Delete(owner, name, commentId).ToObservable();
}
///
@@ -371,10 +371,10 @@ public IObservable Delete(string owner, string name, int id)
///
/// http://developer.github.com/v3/issues/comments/#delete-a-comment
/// The Id of the repository
- /// The comment id
- public IObservable Delete(long repositoryId, int id)
+ /// The comment id
+ public IObservable Delete(long repositoryId, long commentId)
{
- return _client.Delete(repositoryId, id).ToObservable();
+ return _client.Delete(repositoryId, commentId).ToObservable();
}
}
}
\ No newline at end of file
diff --git a/Octokit.Reactive/Clients/ObservableIssueReactionsClient.cs b/Octokit.Reactive/Clients/ObservableIssueReactionsClient.cs
index 00153f0b52..d9e4538571 100644
--- a/Octokit.Reactive/Clients/ObservableIssueReactionsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableIssueReactionsClient.cs
@@ -118,7 +118,7 @@ public IObservable Create(long repositoryId, int number, NewReaction r
/// The issue number
/// The reaction id
///
- public IObservable Delete(string owner, string name, int issueNumber, int reactionId)
+ public IObservable Delete(string owner, string name, int issueNumber, long reactionId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
@@ -135,7 +135,7 @@ public IObservable Delete(string owner, string name, int issueNumber, int
/// The issue number
/// The reaction id
///
- public IObservable Delete(long repositoryId, int issueNumber, int reactionId)
+ public IObservable Delete(long repositoryId, int issueNumber, long reactionId)
{
Ensure.ArgumentNotNull(reactionId, nameof(reactionId));
diff --git a/Octokit.Reactive/Clients/ObservablePullRequestReviewCommentReactionsClient.cs b/Octokit.Reactive/Clients/ObservablePullRequestReviewCommentReactionsClient.cs
index 7a4179b932..eeac757091 100644
--- a/Octokit.Reactive/Clients/ObservablePullRequestReviewCommentReactionsClient.cs
+++ b/Octokit.Reactive/Clients/ObservablePullRequestReviewCommentReactionsClient.cs
@@ -30,19 +30,19 @@ public ObservablePullRequestReviewCommentReactionsClient(IGitHubClient client)
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
- public IObservable GetAll(string owner, string name, int number)
+ /// The comment id
+ public IObservable GetAll(string owner, string name, long commentId)
{
- return GetAll(owner, name, number, ApiOptions.None);
+ return GetAll(owner, name, commentId, ApiOptions.None);
}
- public IObservable GetAll(string owner, string name, int number, ApiOptions options)
+ public IObservable GetAll(string owner, string name, long commentId, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(options, nameof(options));
- return _connection.GetAndFlattenAllPages(ApiUrls.PullRequestReviewCommentReactions(owner, name, number), null, options);
+ return _connection.GetAndFlattenAllPages(ApiUrls.PullRequestReviewCommentReactions(owner, name, commentId), null, options);
}
///
@@ -50,10 +50,10 @@ public IObservable GetAll(string owner, string name, int number, ApiOp
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment
/// The Id of the repository
- /// The comment id
- public IObservable GetAll(long repositoryId, int number)
+ /// The comment id
+ public IObservable GetAll(long repositoryId, long commentId)
{
- return GetAll(repositoryId, number, ApiOptions.None);
+ return GetAll(repositoryId, commentId, ApiOptions.None);
}
///
@@ -61,13 +61,13 @@ public IObservable GetAll(long repositoryId, int number)
///
/// https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// Options for changing the API response
- public IObservable GetAll(long repositoryId, int number, ApiOptions options)
+ public IObservable GetAll(long repositoryId, long commentId, ApiOptions options)
{
Ensure.ArgumentNotNull(options, nameof(options));
- return _connection.GetAndFlattenAllPages(ApiUrls.PullRequestReviewCommentReactions(repositoryId, number), null, options);
+ return _connection.GetAndFlattenAllPages(ApiUrls.PullRequestReviewCommentReactions(repositoryId, commentId), null, options);
}
///
@@ -76,15 +76,15 @@ public IObservable GetAll(long repositoryId, int number, ApiOptions op
/// https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
- public IObservable Create(string owner, string name, int number, NewReaction reaction)
+ public IObservable Create(string owner, string name, long commentId, NewReaction reaction)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(reaction, nameof(reaction));
- return _client.Create(owner, name, number, reaction).ToObservable();
+ return _client.Create(owner, name, commentId, reaction).ToObservable();
}
///
@@ -92,13 +92,13 @@ public IObservable Create(string owner, string name, int number, NewRe
///
/// https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment
/// The owner of the repository
- /// The comment id
+ /// The comment id
/// The reaction to create
- public IObservable Create(long repositoryId, int number, NewReaction reaction)
+ public IObservable Create(long repositoryId, long commentId, NewReaction reaction)
{
Ensure.ArgumentNotNull(reaction, nameof(reaction));
- return _client.Create(repositoryId, number, reaction).ToObservable();
+ return _client.Create(repositoryId, commentId, reaction).ToObservable();
}
///
@@ -110,7 +110,7 @@ public IObservable Create(long repositoryId, int number, NewReaction r
/// The comment id
/// The reaction id
///
- public IObservable Delete(string owner, string name, int commentId, int reactionId)
+ public IObservable Delete(string owner, string name, long commentId, long reactionId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
@@ -127,7 +127,7 @@ public IObservable Delete(string owner, string name, int commentId, int re
/// The comment id
/// The reaction id
///
- public IObservable Delete(long repositoryId, int commentId, int reactionId)
+ public IObservable Delete(long repositoryId, long commentId, long reactionId)
{
Ensure.ArgumentNotNull(reactionId, nameof(reactionId));
diff --git a/Octokit.Reactive/Clients/ObservablePullRequestReviewCommentsClient.cs b/Octokit.Reactive/Clients/ObservablePullRequestReviewCommentsClient.cs
index 3c36d15770..ccc5c855e8 100644
--- a/Octokit.Reactive/Clients/ObservablePullRequestReviewCommentsClient.cs
+++ b/Octokit.Reactive/Clients/ObservablePullRequestReviewCommentsClient.cs
@@ -202,13 +202,13 @@ public IObservable GetAllForRepository(long repository
/// http://developer.github.com/v3/pulls/comments/#get-a-single-comment
/// The owner of the repository
/// The name of the repository
- /// The pull request review comment number
- public IObservable GetComment(string owner, string name, int number)
+ /// The pull request review comment id
+ public IObservable GetComment(string owner, string name, long commentId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
- return _client.GetComment(owner, name, number).ToObservable();
+ return _client.GetComment(owner, name, commentId).ToObservable();
}
///
@@ -216,10 +216,10 @@ public IObservable GetComment(string owner, string nam
///
/// http://developer.github.com/v3/pulls/comments/#get-a-single-comment
/// The Id of the repository
- /// The pull request review comment number
- public IObservable GetComment(long repositoryId, int number)
+ /// The pull request review comment id
+ public IObservable GetComment(long repositoryId, long commentId)
{
- return _client.GetComment(repositoryId, number).ToObservable();
+ return _client.GetComment(repositoryId, commentId).ToObservable();
}
///
@@ -290,15 +290,15 @@ public IObservable CreateReply(long repositoryId, int
/// http://developer.github.com/v3/pulls/comments/#edit-a-comment
/// The owner of the repository
/// The name of the repository
- /// The pull request review comment number
+ /// The pull request review comment id
/// The edited comment
- public IObservable Edit(string owner, string name, int number, PullRequestReviewCommentEdit comment)
+ public IObservable Edit(string owner, string name, long commentId, PullRequestReviewCommentEdit comment)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(comment, nameof(comment));
- return _client.Edit(owner, name, number, comment).ToObservable();
+ return _client.Edit(owner, name, commentId, comment).ToObservable();
}
///
@@ -306,13 +306,13 @@ public IObservable Edit(string owner, string name, int
///
/// http://developer.github.com/v3/pulls/comments/#edit-a-comment
/// The Id of the repository
- /// The pull request review comment number
+ /// The pull request review comment id
/// The edited comment
- public IObservable Edit(long repositoryId, int number, PullRequestReviewCommentEdit comment)
+ public IObservable Edit(long repositoryId, long commentId, PullRequestReviewCommentEdit comment)
{
Ensure.ArgumentNotNull(comment, nameof(comment));
- return _client.Edit(repositoryId, number, comment).ToObservable();
+ return _client.Edit(repositoryId, commentId, comment).ToObservable();
}
///
@@ -321,13 +321,13 @@ public IObservable Edit(long repositoryId, int number,
/// http://developer.github.com/v3/pulls/comments/#delete-a-comment
/// The owner of the repository
/// The name of the repository
- /// The pull request review comment number
- public IObservable Delete(string owner, string name, int number)
+ /// The pull request review comment id
+ public IObservable Delete(string owner, string name, long commentId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
- return _client.Delete(owner, name, number).ToObservable();
+ return _client.Delete(owner, name, commentId).ToObservable();
}
///
@@ -335,10 +335,10 @@ public IObservable Delete(string owner, string name, int number)
///
/// http://developer.github.com/v3/pulls/comments/#delete-a-comment
/// The Id of the repository
- /// The pull request review comment number
- public IObservable Delete(long repositoryId, int number)
+ /// The pull request review comment id
+ public IObservable Delete(long repositoryId, long commentId)
{
- return _client.Delete(repositoryId, number).ToObservable();
+ return _client.Delete(repositoryId, commentId).ToObservable();
}
}
}
diff --git a/Octokit.Reactive/Clients/ObservableRepositoryCommentsClient.cs b/Octokit.Reactive/Clients/ObservableRepositoryCommentsClient.cs
index 7e97fb51b2..aa18bd906a 100644
--- a/Octokit.Reactive/Clients/ObservableRepositoryCommentsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableRepositoryCommentsClient.cs
@@ -29,25 +29,25 @@ public ObservableRepositoryCommentsClient(IGitHubClient client)
///
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment
- public IObservable Get(string owner, string name, int number)
+ public IObservable Get(string owner, string name, long commentId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
- return _client.Get(owner, name, number).ToObservable();
+ return _client.Get(owner, name, commentId).ToObservable();
}
///
/// Gets a single Repository Comment by number.
///
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment
- public IObservable Get(long repositoryId, int number)
+ public IObservable Get(long repositoryId, long commentId)
{
- return _client.Get(repositoryId, number).ToObservable();
+ return _client.Get(repositoryId, commentId).ToObservable();
}
///
@@ -203,30 +203,30 @@ public IObservable Create(long repositoryId, string sha, NewCommi
///
/// The owner of the repository
/// The name of the repository
- /// The comment number
+ /// The comment id
/// The modified comment
/// http://developer.github.com/v3/repos/comments/#update-a-commit-comment
- public IObservable Update(string owner, string name, int number, string commentUpdate)
+ public IObservable Update(string owner, string name, long commentId, string commentUpdate)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate));
- return _client.Update(owner, name, number, commentUpdate).ToObservable();
+ return _client.Update(owner, name, commentId, commentUpdate).ToObservable();
}
///
/// Updates a specified Commit Comment.
///
/// The Id of the repository
- /// The comment number
+ /// The comment id
/// The modified comment
/// http://developer.github.com/v3/repos/comments/#update-a-commit-comment
- public IObservable Update(long repositoryId, int number, string commentUpdate)
+ public IObservable Update(long repositoryId, long commentId, string commentUpdate)
{
Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate));
- return _client.Update(repositoryId, number, commentUpdate).ToObservable();
+ return _client.Update(repositoryId, commentId, commentUpdate).ToObservable();
}
///
@@ -234,25 +234,25 @@ public IObservable Update(long repositoryId, int number, string c
///
/// The owner of the repository
/// The name of the repository
- /// The comment id
+ /// The comment id
/// http://developer.github.com/v3/repos/comments/#delete-a-commit-comment
- public IObservable Delete(string owner, string name, int number)
+ public IObservable Delete(string owner, string name, long commentId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
- return _client.Delete(owner, name, number).ToObservable();
+ return _client.Delete(owner, name, commentId).ToObservable();
}
///
/// Deletes the specified Commit Comment
///
/// The Id of the repository
- /// The comment id
+ /// The comment id
/// http://developer.github.com/v3/repos/comments/#delete-a-commit-comment
- public IObservable Delete(long repositoryId, int number)
+ public IObservable Delete(long repositoryId, long commentId)
{
- return _client.Delete(repositoryId, number).ToObservable();
+ return _client.Delete(repositoryId, commentId).ToObservable();
}
}
}
diff --git a/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs b/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs
index b9343e46c6..6752fc92cd 100644
--- a/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs
@@ -219,7 +219,7 @@ public async Task CanGetReactionPayload()
var numberToCreate = 2;
using (var context = await _github.CreateRepositoryContextWithAutoInit(Helper.MakeNameWithTimestamp("IssueCommentsReactionTests")))
{
- var commentIds = new List();
+ var commentIds = new List();
// Create multiple test issues
for (int count = 1; count <= numberToCreate; count++)
@@ -404,7 +404,7 @@ public async Task CanGetReactionPayload()
var numberToCreate = 2;
using (var context = await _github.CreateRepositoryContextWithAutoInit(Helper.MakeNameWithTimestamp("IssueCommentsReactionTests")))
{
- var commentIds = new List();
+ var commentIds = new List();
// Create a single test issue
var issueNumber = await HelperCreateIssue(context.RepositoryOwner, context.RepositoryName);
@@ -594,7 +594,7 @@ async static Task HelperCreateIssue(string owner, string repo)
return issue.Number;
}
- async static Task HelperCreateIssueCommentWithReactions(string owner, string repo, int number)
+ async static Task HelperCreateIssueCommentWithReactions(string owner, string repo, int number)
{
var github = Helper.GetAuthenticatedClient();
diff --git a/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs b/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs
index 2b6f55da95..31ddd87936 100644
--- a/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs
@@ -928,7 +928,7 @@ public async Task CanGetReactionPayloadForPullRequestReviews()
int numberToCreate = 2;
using (var context = await _github.CreateRepositoryContextWithAutoInit(Helper.MakeNameWithTimestamp("PullRequestReviewCommentsReactionTests")))
{
- var commentIds = new List