mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 10:25:36 +00:00
fc3e9c2cd2
* Implement new attributes for labels * Include correct API header in all Labels calls * Add integration tests for Create and Update methods for labels * Use improved labels API in observable client * found even more endpoints that need the preview header! * RemoveFromIssue actually returns the list of remaining labels rather than null. This change should be source compatible but not binary compatible * Implement new labels search method in SearchClient * Implement reactive client SearchLabels * Improve documentation for label search methods * more comment tidy up
53 lines
1.8 KiB
C#
53 lines
1.8 KiB
C#
using System.Threading.Tasks;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// A client for GitHub's Search API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/search/">Search API documentation</a> for more information.
|
|
/// </remarks>
|
|
public interface ISearchClient
|
|
{
|
|
/// <summary>
|
|
/// search repos
|
|
/// http://developer.github.com/v3/search/#search-repositories
|
|
/// </summary>
|
|
/// <param name="search"></param>
|
|
/// <returns>List of repos</returns>
|
|
Task<SearchRepositoryResult> SearchRepo(SearchRepositoriesRequest search);
|
|
|
|
/// <summary>
|
|
/// search users
|
|
/// http://developer.github.com/v3/search/#search-users
|
|
/// </summary>
|
|
/// <param name="search"></param>
|
|
/// <returns>List of users</returns>
|
|
Task<SearchUsersResult> SearchUsers(SearchUsersRequest search);
|
|
|
|
/// <summary>
|
|
/// search issues
|
|
/// http://developer.github.com/v3/search/#search-issues
|
|
/// </summary>
|
|
/// <param name="search"></param>
|
|
/// <returns>List of issues</returns>
|
|
Task<SearchIssuesResult> SearchIssues(SearchIssuesRequest search);
|
|
|
|
/// <summary>
|
|
/// search code
|
|
/// http://developer.github.com/v3/search/#search-code
|
|
/// </summary>
|
|
/// <param name="search"></param>
|
|
/// <returns>List of files</returns>
|
|
Task<SearchCodeResult> SearchCode(SearchCodeRequest search);
|
|
|
|
/// <summary>
|
|
/// search labels
|
|
/// https://developer.github.com/v3/search/#search-labels
|
|
/// </summary>
|
|
/// <param name="search"></param>
|
|
/// <returns>List of labels</returns>
|
|
Task<SearchLabelsResult> SearchLabels(SearchLabelsRequest search);
|
|
}
|
|
} |