Skip to content

"Add labels to an issue" code block is badly formatted and missing documentation #451

@Marcono1234

Description

@Marcono1234

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 key

    Not 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

No one assigned

    Labels

    Status: Needs infoFull requirements are not yet known, so implementation should not be startedType: DocumentationImprovements or additions to documentationType: SupportAny questions, information, or general needs around the SDK or GitHub APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions