-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
Status: Needs infoFull requirements are not yet known, so implementation should not be startedFull requirements are not yet known, so implementation should not be startedType: DocumentationImprovements or additions to documentationImprovements or additions to documentationType: SupportAny questions, information, or general needs around the SDK or GitHub APIsAny questions, information, or general needs around the SDK or GitHub APIs
Description
What happened?
The code block of addLabels.md
is badly formatted (indentation is wrong), and the page is missing documentation.
Though the GitHub docs page is also rather confusing:
-
You can pass an empty array to remove all labels.
Is that actually correct or was it copied from "Set labels for an issue" by accident? It would be rather surprising if an 'add' operation is able to delete something.
-
but GitHub recommends passing an object with the
labels
keyNot quite sure what "object" means here, the previous sentence said the type is array; same applies to the "Set labels for an issue" endpoint.
-
The examples for this endpoint as well as "Set labels for an issue" seem to be copied from "list labels"; they don't actually specify labels to add / set
Metadata
Metadata
Assignees
Labels
Status: Needs infoFull requirements are not yet known, so implementation should not be startedFull requirements are not yet known, so implementation should not be startedType: DocumentationImprovements or additions to documentationImprovements or additions to documentationType: SupportAny questions, information, or general needs around the SDK or GitHub APIsAny questions, information, or general needs around the SDK or GitHub APIs