/lib/DDG/Spice/Github.pm
Perl | 25 lines | 18 code | 6 blank | 1 comment | 0 complexity | f1671c83e400be35c80910ed417d5a76 MD5 | raw file
- package DDG::Spice::Github;
- # ABSTRACT: Search for information about GitHub repositories
- use DDG::Spice;
- 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'];
- triggers startend => "github";
- spice to => 'https://api.github.com/legacy/repos/search/$1?callback={{callback}}';
- handle query_lc => sub {
- s/^github\s+|\s+github$//;
- return $_ unless /^jobs|jobs$/;
- return;
- };
- 1;