utils/github: Use search_results_items method for code search
This commit is contained in:
parent
1edb59e086
commit
99d2bb9a53
@ -61,7 +61,7 @@ module GitHub
|
|||||||
end
|
end
|
||||||
|
|
||||||
def search_code(repo: nil, user: "Homebrew", path: ["Formula", "Casks", "."], filename: nil, extension: "rb")
|
def search_code(repo: nil, user: "Homebrew", path: ["Formula", "Casks", "."], filename: nil, extension: "rb")
|
||||||
matches = search("code", user: user, path: path, filename: filename, extension: extension, repo: repo)
|
matches = search_results_items("code", user: user, path: path, filename: filename, extension: extension, repo: repo)
|
||||||
return matches if matches.blank?
|
return matches if matches.blank?
|
||||||
|
|
||||||
matches.map do |match|
|
matches.map do |match|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user