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)
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)