mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 20:30:41 +00:00
first pass at cleaning up attributes (#2157)
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Octokit
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
[ManualRoute("GET", "/repos/{owner}/{name}/pulls/comments/{comment_id}/reactions")]
|
||||
[ManualRoute("GET", "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions")]
|
||||
public Task<IReadOnlyList<Reaction>> GetAll(string owner, string name, int number)
|
||||
{
|
||||
return GetAll(owner, name, number, ApiOptions.None);
|
||||
@@ -38,7 +38,7 @@ namespace Octokit
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
[Preview("squirrel-girl")]
|
||||
[ManualRoute("GET", "/repos/{owner}/{name}/pulls/comments/{comment_id}/reactions")]
|
||||
[ManualRoute("GET", "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions")]
|
||||
public Task<IReadOnlyList<Reaction>> GetAll(string owner, string name, int number, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
@@ -85,7 +85,7 @@ namespace Octokit
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create</param>
|
||||
[Preview("squirrel-girl")]
|
||||
[ManualRoute("POST", "/repos/{owner}/{name}/pulls/comments/{comment_id}/reactions")]
|
||||
[ManualRoute("POST", "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions")]
|
||||
public Task<Reaction> Create(string owner, string name, int number, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
|
||||
Reference in New Issue
Block a user