Skip to content

Is there a way to delete labels for only opened issues? #2338

Answered by gr2m
lyqht asked this question in Q&A
Discussion options

You must be logged in to vote

I'm guessing a way to do it 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.

that's the way to go. If you have multiple repositories, it would make a good "remove labels from open issues" @octoherd script:
https://github.com/octoherd/octoherd

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lyqht
Comment options

Answer selected by lyqht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants