using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Check Runs API /// /// /// See the Check Runs API documentation for more information. /// public interface ICheckRunsClient { /// /// Creates a new check run for a specific commit in a repository /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// Details of the Check Run to create Task Create(string owner, string name, NewCheckRun newCheckRun); /// /// Creates a new check run for a specific commit in a repository /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// Details of the Check Run to create Task Create(long repositoryId, NewCheckRun newCheckRun); /// /// Updates a check run for a specific commit in a repository /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The Id of the check run /// The updates to the check run Task Update(string owner, string name, long checkRunId, CheckRunUpdate checkRunUpdate); /// /// Updates a check run for a specific commit in a repository /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The Id of the check run /// The updates to the check run Task Update(long repositoryId, long checkRunId, CheckRunUpdate checkRunUpdate); /// /// Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The commit reference (can be a SHA, branch name, or a tag name) Task GetAllForReference(string owner, string name, string reference); /// /// Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The commit reference (can be a SHA, branch name, or a tag name) Task GetAllForReference(long repositoryId, string reference); /// /// Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The commit reference (can be a SHA, branch name, or a tag name) /// Details to filter the request, such as by check name Task GetAllForReference(string owner, string name, string reference, CheckRunRequest checkRunRequest); /// /// Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The commit reference (can be a SHA, branch name, or a tag name) /// Details to filter the request, such as by check name Task GetAllForReference(long repositoryId, string reference, CheckRunRequest checkRunRequest); /// /// Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The commit reference (can be a SHA, branch name, or a tag name) /// Details to filter the request, such as by check name /// Options to change the API response Task GetAllForReference(string owner, string name, string reference, CheckRunRequest checkRunRequest, ApiOptions options); /// /// Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The commit reference (can be a SHA, branch name, or a tag name) /// Details to filter the request, such as by check name /// Options to change the API response Task GetAllForReference(long repositoryId, string reference, CheckRunRequest checkRunRequest, ApiOptions options); /// /// Lists check runs for a check suite using its Id /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The Id of the check suite Task GetAllForCheckSuite(string owner, string name, long checkSuiteId); /// /// Lists check runs for a check suite using its Id /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The Id of the check suite Task GetAllForCheckSuite(long repositoryId, long checkSuiteId); /// /// Lists check runs for a check suite using its Id /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The Id of the check suite /// Details to filter the request, such as by check name Task GetAllForCheckSuite(string owner, string name, long checkSuiteId, CheckRunRequest checkRunRequest); /// /// Lists check runs for a check suite using its Id /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The Id of the check suite /// Details to filter the request, such as by check name Task GetAllForCheckSuite(long repositoryId, long checkSuiteId, CheckRunRequest checkRunRequest); /// /// Lists check runs for a check suite using its Id /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The Id of the check suite /// Details to filter the request, such as by check name /// Options to change the API response Task GetAllForCheckSuite(string owner, string name, long checkSuiteId, CheckRunRequest checkRunRequest, ApiOptions options); /// /// Lists check runs for a check suite using its Id /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The Id of the check suite /// Details to filter the request, such as by check name /// Options to change the API response Task GetAllForCheckSuite(long repositoryId, long checkSuiteId, CheckRunRequest checkRunRequest, ApiOptions options); /// /// Gets a single check run using its Id /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The Id of the check run Task Get(string owner, string name, long checkRunId); /// /// Gets a single check run using its Id /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The Id of the check run Task Get(long repositoryId, long checkRunId); /// /// Lists annotations for a check run using the check run Id /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The Id of the check run Task> GetAllAnnotations(string owner, string name, long checkRunId); /// /// Lists annotations for a check run using the check run Id /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The Id of the check run /// Task> GetAllAnnotations(long repositoryId, long checkRunId); /// /// Lists annotations for a check run using the check run Id /// /// /// See the Check Runs API documentation for more information. /// /// The owner of the repository /// The name of the repository /// The Id of the check run /// Options to change the API response Task> GetAllAnnotations(string owner, string name, long checkRunId, ApiOptions options); /// /// Lists annotations for a check run using the check run Id /// /// /// See the Check Runs API documentation for more information. /// /// The Id of the repository /// The Id of the check run /// Options to change the API response Task> GetAllAnnotations(long repositoryId, long checkRunId, ApiOptions options); } }