Last active
December 14, 2015 12:48
-
-
Save turesheim/5088726 to your computer and use it in GitHub Desktop.
Bash script for closing issues 50-5000 that were inadvertently created using Zapier synchronization.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for issue in {50..5000} | |
do | |
echo "Closing issue #$issue" | |
curl --progress-bar --user "<github-user>:<github-password>" -X PATCH \ | |
--data '{"state":"closed","title":"Inadvertently created by Zapier sync","body":""}' \ | |
https://api.github.com/repos/<github-user>/<github-repo>/issues/$issue > /dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment