mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 20:30:41 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user