Skip to content
Discussion options

You must be logged in to vote

Hey @Palkers76 — there are a few tools depending on what you mean by "search":

  • Code/content within filessearch_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.
  • Filename lookup inside one repoget_file_contents does double duty. If the path you 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 / filterPaths in pkg/github/repositories_helper.go). So get_file_contents with path: "MyComponent.tsx" effectively does a filename search inside that repo.
  • Repos the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SamMorrowDrums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants