Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Delete labels only from open issues #43

Description

@lyqht

Context

As per the discussion on Octokit, from the docs, it seems that the issues API only have a route for deleting labels from all issues/PRs, and this is what is currently used in Octokit-lite.

Suggested solution

A way to achieve the functionality of deleting labels only from open issues is to find all issues, look through each of them to see if they are open and then use the PATCH API to update the labels for each of them. This is a little manual, so I'm happy to hear if there's better alternatives!

Regardless, this functionality should be in its own octoherd script repo, and then Octokit-lite will import that script (Refer to #15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions