Skip to content

Instantly share code, notes, and snippets.

@mstriemer
Last active August 29, 2015 14:04
Show Gist options
  • Save mstriemer/45425c8e6db9bed6ed3a to your computer and use it in GitHub Desktop.
Save mstriemer/45425c8e6db9bed6ed3a to your computer and use it in GitHub Desktop.
Print a URL to view "all" the bugs in some commit range.
#!/bin/sh
git log $1...$2 |
grep -o 'bug \d\d*' |
cut -d ' ' -f2 |
sort |
uniq |
ruby -e "puts 'https://bugzilla.mozilla.org/buglist.cgi?quicksearch=' + STDIN.map(&:chomp).join(',')"
$ ./current-bugs.sh 2014.07.15 2014.07.22
https://bugzilla.mozilla.org/buglist.cgi?quicksearch=1020943,1024571,1025307,1030849,1035434,1036164,1036216,1036921,1038339,1038341,1039036,1039067,1039613,1039676,1040154,907910,985996,987880
$ open $(./current-bugs.sh 2014.07.15 2014.07.22)
# Browser opens to Bugzilla page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment