You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please improve usability for handling of issue labels. Current version 1.94.
Current situation
Currently it is very tedious to attach or detach a single label and leave the other labels of the issue untouched.
Currention: Currently it is even not possible.
It is because setLabels affects the complete list of labels of the issue.
The procedure to attach a single label without side effects to possible other labels of the issue is
Use getLabels to retrieve collection of GHLabel objects
Create list of Strings from the collection
Add name of label to be attached to the list
Now setLabels needed to be used to apply the list to the issue. But the method offers variadic argument list only, cast not possible, data can not be conveyed.
Please improve usability for handling of issue labels. Current version
1.94
.Current situation
Currently it is very tedious to attach or detach a single label and leave the other labels of the issue untouched.
Currention: Currently it is even not possible.
It is because
setLabels
affects the complete list of labels of the issue.The procedure to attach a single label without side effects to possible other labels of the issue is
getLabels
to retrieve collection ofGHLabel
objectssetLabels
needed to be used to apply the list to the issue. But the method offers variadic argument list only, cast not possible, data can not be conveyed.Class
GHIssue
offers three methods for labelsvoid setLabels(String... labels)
Collection<GHLabel> | getLabels()
Usecases
(Dirty) workaround
This is my workaround using in my groovy scripts currently:
The text was updated successfully, but these errors were encountered: