Skip to content

Commit

Permalink
add attributes for antiope preview
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Mar 6, 2020
1 parent 0dd3962 commit 3d89a79
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Octokit/Clients/CheckRunsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public CheckRunsClient(IApiConnection apiConnection) : base(apiConnection)
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="newCheckRun">Details of the Check Run to create</param>
[Preview("antiope")]
[ManualRoute("POST", "/repos/{owner}/{name}/check-runs")]
public Task<CheckRun> Create(string owner, string name, NewCheckRun newCheckRun)
{
Expand All @@ -48,6 +49,7 @@ public Task<CheckRun> Create(string owner, string name, NewCheckRun newCheckRun)
/// </remarks>
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="newCheckRun">Details of the Check Run to create</param>
[Preview("antiope")]
[ManualRoute("POST", "/repositories/{id}/check-runs")]
public Task<CheckRun> Create(long repositoryId, NewCheckRun newCheckRun)
{
Expand All @@ -66,6 +68,7 @@ public Task<CheckRun> Create(long repositoryId, NewCheckRun newCheckRun)
/// <param name="name">The name of the repository</param>
/// <param name="checkRunId">The Id of the check run</param>
/// <param name="checkRunUpdate">The updates to the check run</param>
[Preview("antiope")]
[ManualRoute("PATCH", "/repos/{owner}/{name}/check-runs/{check_run_id}")]
public Task<CheckRun> Update(string owner, string name, long checkRunId, CheckRunUpdate checkRunUpdate)
{
Expand All @@ -85,6 +88,7 @@ public Task<CheckRun> Update(string owner, string name, long checkRunId, CheckRu
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="checkRunId">The Id of the check run</param>
/// <param name="checkRunUpdate">The updates to the check run</param>
[Preview("antiope")]
[ManualRoute("PATCH", "/repositories/{id}/check-runs/{check_run_id}")]
public Task<CheckRun> Update(long repositoryId, long checkRunId, CheckRunUpdate checkRunUpdate)
{
Expand Down Expand Up @@ -178,6 +182,7 @@ public Task<CheckRunsResponse> GetAllForReference(long repositoryId, string refe
/// <param name="reference">The commit reference (can be a SHA, branch name, or a tag name)</param>
/// <param name="checkRunRequest">Details to filter the request, such as by check name</param>
/// <param name="options">Options to change the API response</param>
[Preview("antiope")]
[ManualRoute("GET", "repos/{owner}/{name}/commits/{sha}/check-runs")]
public async Task<CheckRunsResponse> GetAllForReference(string owner, string name, string reference, CheckRunRequest checkRunRequest, ApiOptions options)
{
Expand All @@ -204,6 +209,7 @@ public async Task<CheckRunsResponse> GetAllForReference(string owner, string nam
/// <param name="reference">The commit reference (can be a SHA, branch name, or a tag name)</param>
/// <param name="checkRunRequest">Details to filter the request, such as by check name</param>
/// <param name="options">Options to change the API response</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/commits/{sha}/check-runs")]
public async Task<CheckRunsResponse> GetAllForReference(long repositoryId, string reference, CheckRunRequest checkRunRequest, ApiOptions options)
{
Expand Down Expand Up @@ -298,6 +304,7 @@ public Task<CheckRunsResponse> GetAllForCheckSuite(long repositoryId, long check
/// <param name="checkSuiteId">The Id of the check suite</param>
/// <param name="checkRunRequest">Details to filter the request, such as by check name</param>
/// <param name="options">Options to change the API response</param>
[Preview("antiope")]
[ManualRoute("GET", "/repos/{owner}/{name}/check-suite/{check_suite_id}/check-runs")]
public async Task<CheckRunsResponse> GetAllForCheckSuite(string owner, string name, long checkSuiteId, CheckRunRequest checkRunRequest, ApiOptions options)
{
Expand All @@ -323,6 +330,7 @@ public async Task<CheckRunsResponse> GetAllForCheckSuite(string owner, string na
/// <param name="checkSuiteId">The Id of the check suite</param>
/// <param name="checkRunRequest">Details to filter the request, such as by check name</param>
/// <param name="options">Options to change the API response</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/check-suites/{check_suite_id}/check-runs")]
public async Task<CheckRunsResponse> GetAllForCheckSuite(long repositoryId, long checkSuiteId, CheckRunRequest checkRunRequest, ApiOptions options)
{
Expand All @@ -345,6 +353,7 @@ public async Task<CheckRunsResponse> GetAllForCheckSuite(long repositoryId, long
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="checkRunId">The Id of the check run</param>
[Preview("antiope")]
[ManualRoute("GET", "/repos/{owner}/{name}/check-runs/{check_run_id}")]
public Task<CheckRun> Get(string owner, string name, long checkRunId)
{
Expand All @@ -362,6 +371,7 @@ public Task<CheckRun> Get(string owner, string name, long checkRunId)
/// </remarks>
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="checkRunId">The Id of the check run</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/check-runs/{check_run_id}")]
public Task<CheckRun> Get(long repositoryId, long checkRunId)
{
Expand Down Expand Up @@ -411,6 +421,7 @@ public Task<IReadOnlyList<CheckRunAnnotation>> GetAllAnnotations(long repository
/// <param name="name">The name of the repository</param>
/// <param name="checkRunId">The Id of the check run</param>
/// <param name="options">Options to change the API response</param>
[Preview("antiope")]
[ManualRoute("GET", "/repos/{owner}/{name}/check-runs/{check_run_id}/annotations")]
public Task<IReadOnlyList<CheckRunAnnotation>> GetAllAnnotations(string owner, string name, long checkRunId, ApiOptions options)
{
Expand All @@ -430,6 +441,7 @@ public Task<IReadOnlyList<CheckRunAnnotation>> GetAllAnnotations(string owner, s
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="checkRunId">The Id of the check run</param>
/// <param name="options">Options to change the API response</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/check-runs/{check_run_id}/annotations")]
public Task<IReadOnlyList<CheckRunAnnotation>> GetAllAnnotations(long repositoryId, long checkRunId, ApiOptions options)
{
Expand Down
10 changes: 10 additions & 0 deletions Octokit/Clients/CheckSuitesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public CheckSuitesClient(IApiConnection apiConnection) : base(apiConnection)
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="checkSuiteId">The Id of the check suite</param>
[Preview("antiope")]
[ManualRoute("GET", "/repos/{owner}/{name}/check-suites/{id}")]
public Task<CheckSuite> Get(string owner, string name, long checkSuiteId)
{
Expand All @@ -47,6 +48,7 @@ public Task<CheckSuite> Get(string owner, string name, long checkSuiteId)
/// </remarks>
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="checkSuiteId">The Id of the check suite</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/check-suites/{check_suite_id}")]
public Task<CheckSuite> Get(long repositoryId, long checkSuiteId)
{
Expand Down Expand Up @@ -138,6 +140,7 @@ public Task<CheckSuitesResponse> GetAllForReference(long repositoryId, string re
/// <param name="reference">The reference (SHA, branch name or tag name) to list check suites for</param>
/// <param name="request">Details to filter the request, such as by App Id or Check Name</param>
/// <param name="options">Options to change the API response</param>
[Preview("antiope")]
[ManualRoute("GET", "/repos/{owner}/{name}/commits/{ref}/check-suites")]
public async Task<CheckSuitesResponse> GetAllForReference(string owner, string name, string reference, CheckSuiteRequest request, ApiOptions options)
{
Expand All @@ -164,6 +167,7 @@ public async Task<CheckSuitesResponse> GetAllForReference(string owner, string n
/// <param name="reference">The reference (SHA, branch name or tag name) to list check suites for</param>
/// <param name="request">Details to filter the request, such as by App Id or Check Name</param>
/// <param name="options">Options to change the API response</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/commits/{ref}/check-suites")]
public async Task<CheckSuitesResponse> GetAllForReference(long repositoryId, string reference, CheckSuiteRequest request, ApiOptions options)
{
Expand All @@ -187,6 +191,7 @@ public async Task<CheckSuitesResponse> GetAllForReference(long repositoryId, str
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="preferences">The check suite preferences</param>
[Preview("antiope")]
[ManualRoute("PATCH", "/repos/{owner}/{name}/check-suites/preferences")]
public Task<CheckSuitePreferencesResponse> UpdatePreferences(string owner, string name, CheckSuitePreferences preferences)
{
Expand All @@ -205,6 +210,7 @@ public Task<CheckSuitePreferencesResponse> UpdatePreferences(string owner, strin
/// </remarks>
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="preferences">The check suite preferences</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/check-suites/preferences")]
public Task<CheckSuitePreferencesResponse> UpdatePreferences(long repositoryId, CheckSuitePreferences preferences)
{
Expand All @@ -222,6 +228,7 @@ public Task<CheckSuitePreferencesResponse> UpdatePreferences(long repositoryId,
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="newCheckSuite">Details of the Check Suite to create</param>
[Preview("antiope")]
[ManualRoute("POST", "/repos/{owner}/{name}/check-suites")]
public Task<CheckSuite> Create(string owner, string name, NewCheckSuite newCheckSuite)
{
Expand All @@ -240,6 +247,7 @@ public Task<CheckSuite> Create(string owner, string name, NewCheckSuite newCheck
/// </remarks>
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="newCheckSuite">Details of the Check Suite to create</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/check-suites")]
public Task<CheckSuite> Create(long repositoryId, NewCheckSuite newCheckSuite)
{
Expand All @@ -257,6 +265,7 @@ public Task<CheckSuite> Create(long repositoryId, NewCheckSuite newCheckSuite)
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="checkSuiteId">The Id of the check suite</param>
[Preview("antiope")]
[ManualRoute("GET", "/repos/{owner}/{name}/check-suites/{2}/rerequest")]
public async Task<bool> Rerequest(string owner, string name, long checkSuiteId)
{
Expand All @@ -281,6 +290,7 @@ public async Task<bool> Rerequest(string owner, string name, long checkSuiteId)
/// </remarks>
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="checkSuiteId">The Id of the check suite</param>
[Preview("antiope")]
[ManualRoute("GET", "/repositories/{id}/check-suites/{2}/rerequest")]
public async Task<bool> Rerequest(long repositoryId, long checkSuiteId)
{
Expand Down

0 comments on commit 3d89a79

Please sign in to comment.