Skip to content

Instantly share code, notes, and snippets.

@philz
Created August 5, 2013 20:25
Show Gist options
  • Save philz/6159293 to your computer and use it in GitHub Desktop.
Save philz/6159293 to your computer and use it in GitHub Desktop.
Close your open review board requests
for x in $(curl 'http://reviewboard/api/review-requests/?status=pending&from-user=philip&last-updated-to=2013-06-01' | jsonpipe | grep links/self/href | awk '{ print $2 }' | grep -v pending | tr -d \"); do
curl -u "philip:$(cat /tmp/pass)" -v -XPUT $x -Fstatus=submitted;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment