Implement improved labels API (#1802)

* 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
This commit is contained in:
Jozef Izso
2018-05-17 13:48:45 +02:00
committed by Ryan Gribble
parent f771147f1d
commit fc3e9c2cd2
21 changed files with 436 additions and 74 deletions
@@ -263,7 +263,7 @@ namespace Octokit.Reactive
/// <param name="name">The name of the repository</param>
/// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param>
IObservable<Unit> RemoveFromIssue(string owner, string name, int number, string labelName);
IObservable<Label> RemoveFromIssue(string owner, string name, int number, string labelName);
/// <summary>
/// Removes a label from an issue
@@ -274,7 +274,7 @@ namespace Octokit.Reactive
/// <param name="repositoryId">The Id of the repository</param>
/// <param name="number">The number of the issue</param>
/// <param name="labelName">The name of the label to remove</param>
IObservable<Unit> RemoveFromIssue(long repositoryId, int number, string labelName);
IObservable<Label> RemoveFromIssue(long repositoryId, int number, string labelName);
/// <summary>
/// Replaces all labels on the specified issues with the provided labels