PageRenderTime 52ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/Github.pm

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 25 lines | 18 code | 6 blank | 1 comment | 0 complexity | f1671c83e400be35c80910ed417d5a76 MD5 | raw file
  1. package DDG::Spice::Github;
  2. # ABSTRACT: Search for information about GitHub repositories
  3. use DDG::Spice;
  4. primary_example_queries "github zeroclickinfo";
  5. description "Github info";
  6. name "Github";
  7. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Github.pm";
  8. topics "programming", "web_design";
  9. category "programming";
  10. attribution web => ['http://dylansserver.com','Dylan Lloyd'],
  11. email => ['dylan@dylansserver.com','Dylan Lloyd'];
  12. triggers startend => "github";
  13. spice to => 'https://api.github.com/legacy/repos/search/$1?callback={{callback}}';
  14. handle query_lc => sub {
  15. s/^github\s+|\s+github$//;
  16. return $_ unless /^jobs|jobs$/;
  17. return;
  18. };
  19. 1;