Πίσω στο GitHub

Σύνδεση Knoon AI με GitHub για αυτοματοποίηση ροών εργασίας AI.

Search code across repositories using GitHub query syntax. Returns matching snippets and saves full matched files as attachments.
githubDefaultSearchCode
ΒΕΤΑ
Εσωτερικό
Άδειες
  • repo
Προαιρετικές άδειες
Δεν υπάρχουν αντικείμενα για εμφάνιση.
Παράμετροι
ΌνομαΤύποςΠεριγραφήΑπαραίτητο
querymustache Search query string, e.g. repo:owner/repo path:src language:js keyword.Ναι
sortstring Optional sort: indexed.Όχι
orderstring Optional order: desc or asc.Όχι
perPagemustache Optional page size (1-100, default 30).Όχι
pagemustache Optional page number (default 1).Όχι
Επιστροφές
ΌνομαΤύποςΠεριγραφή
totalCountnumber Total matching code results reported by GitHub.
incompleteResultsboolean Whether GitHub returned an incomplete result set.
items.namestring File name.
items.pathstring Path to the file in the repository.
items.shastring File SHA.
items.repositoryFullNamestring Repository full name in owner/repo format.
items.htmlUrlstring GitHub web URL for the matching file.
items.urlstring GitHub API URL for the matching file.
items.downloadUrlstring Raw download URL for the matching file when available.
items.snippets.propertystring Matched property name, usually content.
items.snippets.fragmentstring Matched code fragment snippet.
items.snippets.matches.textstring Matched text.
items.snippets.matches.indicesarray Start and end offsets for the match in the fragment.
items.codeAttachmentstring Attachment URL containing the full matched file content.