Skip to content

Instantly share code, notes, and snippets.

@kiyoto
Last active December 14, 2015 03:38
Show Gist options
  • Save kiyoto/5022163 to your computer and use it in GitHub Desktop.
Save kiyoto/5022163 to your computer and use it in GitHub Desktop.
#!/bin/bash
repo=$1
project=$2
curl -sL https://api.github.com/repos/$1/$2/issues | perl -e '$nc=0; while(<>) { if(/"comments": (\d+)/ && ($nc < ($c=int($1)))) { $nc=$c; } } print "$nc\n";'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment