/lib/DDG/Spice/Github.pm
Perl | 25 lines | 19 code | 5 blank | 1 comment | 1 complexity | db9a575782e8f6fbcf3a208507066307 MD5 | raw file
- package DDG::Spice::Github;
- # ABSTRACT: Search for information about GitHub repositories
- use DDG::Spice;
- triggers any => "github";
- spice to => 'https://api.github.com/legacy/repos/search/$1?callback={{callback}}';
- primary_example_queries => "github zeroclickinfo";
- description "Github info";
- name "Github";
- code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Github.pm";
- topics => "programming", "web design";
- category => "programming";
- attribution web => ['http://dylansserver.com','Dylan Lloyd'],
- email => ['dylan@dylansserver.com','Dylan Lloyd'];
- handle query_lc => sub {
- if (/^github\s+(?!jobs?)(.+)$/) {
- return $1;
- }
- return;
- };
- 1;