diff --git a/Octokit.Reactive/Clients/IObservableCommitCommentReactionsClient.cs b/Octokit.Reactive/Clients/IObservableCommitCommentReactionsClient.cs
index 0557a16b..9411e675 100644
--- a/Octokit.Reactive/Clients/IObservableCommitCommentReactionsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableCommitCommentReactionsClient.cs
@@ -21,6 +21,16 @@ namespace Octokit.Reactive
/// A of representing created reaction for specified comment id.
IObservable Create(string owner, string name, int number, 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 reaction to create
+ /// A of representing created reaction for specified comment id.
+ IObservable Create(int repositoryId, int number, NewReaction reaction);
+
///
/// List reactions for a specified Commit Comment
///
@@ -30,5 +40,14 @@ namespace Octokit.Reactive
/// The comment id
/// A of s representing all reactions for specified comment id.
IObservable GetAll(string owner, string name, int number);
+
+ ///
+ /// 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
+ /// A of s representing all reactions for specified comment id.
+ IObservable GetAll(int repositoryId, int number);
}
}
diff --git a/Octokit.Reactive/Clients/ObservableCommitCommentReactionsClient.cs b/Octokit.Reactive/Clients/ObservableCommitCommentReactionsClient.cs
index 017960b3..f1c6c053 100644
--- a/Octokit.Reactive/Clients/ObservableCommitCommentReactionsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableCommitCommentReactionsClient.cs
@@ -41,6 +41,21 @@ namespace Octokit.Reactive
return _client.Create(owner, name, number, reaction).ToObservable();
}
+ ///
+ /// 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 reaction to create
+ /// A of representing created reaction for specified comment id.
+ public IObservable Create(int repositoryId, int number, NewReaction reaction)
+ {
+ Ensure.ArgumentNotNull(reaction, "reaction");
+
+ return _client.Create(repositoryId, number, reaction).ToObservable();
+ }
+
///
/// List reactions for a specified Commit Comment
///
@@ -56,5 +71,17 @@ namespace Octokit.Reactive
return _connection.GetAndFlattenAllPages(ApiUrls.CommitCommentReactions(owner, name, number), null, AcceptHeaders.ReactionsPreview);
}
+
+ ///
+ /// 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
+ /// A of s representing all reactions for specified comment id.
+ public IObservable GetAll(int repositoryId, int number)
+ {
+ return _connection.GetAndFlattenAllPages(ApiUrls.CommitCommentReactions(repositoryId, number), null, AcceptHeaders.ReactionsPreview);
+ }
}
}
diff --git a/Octokit/Clients/CommitCommentReactionsClient.cs b/Octokit/Clients/CommitCommentReactionsClient.cs
index 3dca0f50..2b26250d 100644
--- a/Octokit/Clients/CommitCommentReactionsClient.cs
+++ b/Octokit/Clients/CommitCommentReactionsClient.cs
@@ -34,6 +34,21 @@ namespace Octokit
return ApiConnection.Post(ApiUrls.CommitCommentReactions(owner, name, number), reaction, AcceptHeaders.ReactionsPreview);
}
+ ///
+ /// Creates a reaction for a specified Commit Comment
+ ///
+ /// https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment
+ /// The owner of the repository
+ /// The comment id
+ /// The reaction to create
+ /// A representing created reaction for specified comment id.
+ public Task Create(int repositoryId, int number, NewReaction reaction)
+ {
+ Ensure.ArgumentNotNull(reaction, "reaction");
+
+ return ApiConnection.Post(ApiUrls.CommitCommentReactions(repositoryId, number), reaction, AcceptHeaders.ReactionsPreview);
+ }
+
///
/// Get all reactions for a specified Commit Comment
///
@@ -49,5 +64,17 @@ namespace Octokit
return ApiConnection.GetAll(ApiUrls.CommitCommentReactions(owner, name, number), AcceptHeaders.ReactionsPreview);
}
+
+ ///
+ /// Get all 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
+ /// A of s representing all reactions for specified comment id.
+ public Task> GetAll(int repositoryId, int number)
+ {
+ return ApiConnection.GetAll(ApiUrls.CommitCommentReactions(repositoryId, number), AcceptHeaders.ReactionsPreview);
+ }
}
}
diff --git a/Octokit/Clients/ICommitCommentReactionsClient.cs b/Octokit/Clients/ICommitCommentReactionsClient.cs
index 5bc0a0fa..f5c64833 100644
--- a/Octokit/Clients/ICommitCommentReactionsClient.cs
+++ b/Octokit/Clients/ICommitCommentReactionsClient.cs
@@ -22,6 +22,16 @@ namespace Octokit
/// A representing created reaction for specified comment id.
Task Create(string owner, string name, int number, NewReaction reaction);
+ ///
+ /// Creates a reaction for a specified Commit Comment
+ ///
+ /// https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment
+ /// The owner of the repository
+ /// The comment id
+ /// The reaction to create
+ /// A representing created reaction for specified comment id.
+ Task Create(int repositoryId, int number, NewReaction reaction);
+
///
/// Get all reactions for a specified Commit Comment
///
@@ -31,5 +41,14 @@ namespace Octokit
/// The comment id
/// A of s representing all reactions for specified comment id.
Task> GetAll(string owner, string name, int number);
+
+ ///
+ /// Get all 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
+ /// A of s representing all reactions for specified comment id.
+ Task> GetAll(int repositoryId, int number);
}
}