Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Github: Handle overlapping triggers with Issues IA (#3267)
Browse files Browse the repository at this point in the history
  • Loading branch information
manrajgrover authored and moollaza committed Aug 30, 2017
1 parent 63f9f3b commit 83f9c3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DDG/Spice/Github.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spice proxy_cache_valid => '200 1d';

handle query_lc => sub {
s/^github\s*|\s+github$//;
if ($_ eq "" || m/\bjobs\b|\bstatus\b/) {
if ($_ eq "" || m/\bjobs\b|\bstatus\b|\bissue\b/) {
return;
}

Expand All @@ -38,7 +38,7 @@ handle query_lc => sub {
# These is no separate language parameter for the query to
# Github. You specify language as a part of the raw query string
# passed to the api like on the web form interface.
return "${query} language:\"${l}\"" unless /^jobs\b|\bjobs$|^status\b|\bstatus$/;
return "${query} language:\"${l}\"" unless /^jobs\b|\bjobs$|^status\b|\bstatus$|^issue\b|\bissue$/;
}
};
1;
1 change: 1 addition & 0 deletions t/Github.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ddg_spice_test(
call_type => 'include',
caller => 'DDG::Spice::Github'
),
'rails invalid authenticity github issue' => undef,
'github status' => undef,
'github' => undef,
'github ' => undef
Expand Down

0 comments on commit 83f9c3d

Please sign in to comment.