Skip to content

Instantly share code, notes, and snippets.

@antonmry
Created May 19, 2016 18:03
Show Gist options
  • Save antonmry/7be57a95306fc448fd9769fed8a0a571 to your computer and use it in GitHub Desktop.
Save antonmry/7be57a95306fc448fd9769fed8a0a571 to your computer and use it in GitHub Desktop.
Delete one label from the issues already done in one repository
ghi list -L LABELTOBEDELETED -s closed -- YOURORGANIZATION/YOURREPO | sed -n '/^[ 0-9 ]/p' | sed -r 's/([^0-9]*([0-9]*)){1}.*/\2/' | xargs -I %issue sh -c 'ghi label "%issue" -d "LABELTOBEDELETED" -- YOURORGANIZATION/YOURREPO'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment