Last active
August 29, 2015 14:04
-
-
Save mstriemer/45425c8e6db9bed6ed3a to your computer and use it in GitHub Desktop.
Print a URL to view "all" the bugs in some commit range.
This file contains hidden or 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 | |
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(',')" |
This file contains hidden or 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
$ ./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