-
|
Is there any such tool/ api Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
jluocsa
May 17, 2026
Replies: 1 comment
-
|
Hey @Palkers76 — there are a few tools depending on what you mean by "search":
What there isn't: a tool that searches arbitrary binary documents (PDFs, .docx) stored in a repo. The server is a thin wrapper over GitHub's REST/Search APIs, so it only sees what code search indexes — text files, ~384 KB cap per file, default branch only. Wiki and Releases content aren't searchable through this server either. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SamMorrowDrums
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Palkers76 — there are a few tools depending on what you mean by "search":
search_code(pkg/github/search.go). Backed by GitHub's native code search, so you can use the same qualifiers as the UI:filename:Dockerfile,path:src/**/*.ts,extension:md,repo:owner/name,org:foo, etc.get_file_contentsdoes double duty. If thepathyou pass doesn't resolve to an exact file/dir, it falls back to a recursive Git Tree scan and returns up to 3 suffix matches (matchFiles/filterPathsinpkg/github/repositories_helper.go). Soget_file_contentswithpath: "MyComponent.tsx"effectively does a filename search inside that repo.