add metadata to each client action (#2124)

This commit is contained in:
Brendan Forster
2020-03-04 21:10:38 -04:00
committed by GitHub
parent a2b0d87ce8
commit f96885654f
79 changed files with 1178 additions and 78 deletions
@@ -22,7 +22,8 @@ namespace Octokit
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
/// <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>
/// <param name="number">The comment id</param>
[ManualRoute("GET", "/repos/{owner}/{name}/pulls/comments/{comment_id}/reactions")]
public Task<IReadOnlyList<Reaction>> GetAll(string owner, string name, int number)
{
return GetAll(owner, name, number, ApiOptions.None);
@@ -35,7 +36,8 @@ 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>
/// <param name="options">Options for changing the API response</param>
/// <param name="options">Options for changing the API response</param>
[ManualRoute("GET", "/repos/{owner}/{name}/pulls/comments/{comment_id}/reactions")]
public Task<IReadOnlyList<Reaction>> GetAll(string owner, string name, int number, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
@@ -50,7 +52,8 @@ namespace Octokit
/// </summary>
/// <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="number">The comment id</param>
/// <param name="number">The comment id</param>
[ManualRoute("GET", "/repositories/{id}/pulls/comments/{comment_id}/reactions")]
public Task<IReadOnlyList<Reaction>> GetAll(long repositoryId, int number)
{
return GetAll(repositoryId, number, ApiOptions.None);
@@ -62,7 +65,8 @@ namespace Octokit
/// <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="number">The comment id</param>
/// <param name="options">Options for changing the API response</param>
/// <param name="options">Options for changing the API response</param>
[ManualRoute("GET", "/repositories/{id}/pulls/comments/{comment_id}/reactions")]
public Task<IReadOnlyList<Reaction>> GetAll(long repositoryId, int number, ApiOptions options)
{
Ensure.ArgumentNotNull(options, nameof(options));
@@ -78,6 +82,7 @@ namespace Octokit
/// <param name="name">The name of the repository</param>
/// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create</param>
[ManualRoute("POST", "/repos/{owner}/{name}/pulls/comments/{comment_id}/reactions")]
public Task<Reaction> Create(string owner, string name, int number, NewReaction reaction)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
@@ -94,6 +99,7 @@ namespace Octokit
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The comment id</param>
/// <param name="reaction">The reaction to create</param>
[ManualRoute("POST", "/repositories/{id}/pulls/comments/{comment_id}/reactions")]
public Task<Reaction> Create(long repositoryId, int number, NewReaction reaction)
{
Ensure.ArgumentNotNull(reaction, nameof(reaction));