ย้อนกลับไปยัง GitHub
เชื่อมต่อ Knoon AI กับ GitHub เพื่อทำงานอัตโนมัติของเวิร์กโฟลว์ AI
Search code across repositories using GitHub query syntax. Returns matching snippets and saves full matched files as attachments.
githubDefaultSearchCode
เบต้า
ภายใน
สิทธิ์การใช้งาน
สิทธิ์การใช้งานตัวเลือก
ไม่มีรายการให้แสดง
พารามิเตอร์
| ชื่อ | ประเภท | คำอธิบาย | จำเป็นต้องมี |
|---|---|---|---|
| query | mustache | Search query string, e.g. repo:owner/repo path:src language:js keyword. | ใช่ |
| sort | string | Optional sort: indexed. | ไม่ |
| order | string | Optional order: desc or asc. | ไม่ |
| perPage | mustache | Optional page size (1-100, default 30). | ไม่ |
| page | mustache | Optional page number (default 1). | ไม่ |
คืนสินค้า
| ชื่อ | ประเภท | คำอธิบาย |
|---|---|---|
| totalCount | number | Total matching code results reported by GitHub. |
| incompleteResults | boolean | Whether GitHub returned an incomplete result set. |
| items.name | string | File name. |
| items.path | string | Path to the file in the repository. |
| items.sha | string | File SHA. |
| items.repositoryFullName | string | Repository full name in owner/repo format. |
| items.htmlUrl | string | GitHub web URL for the matching file. |
| items.url | string | GitHub API URL for the matching file. |
| items.downloadUrl | string | Raw download URL for the matching file when available. |
| items.snippets.property | string | Matched property name, usually content. |
| items.snippets.fragment | string | Matched code fragment snippet. |
| items.snippets.matches.text | string | Matched text. |
| items.snippets.matches.indices | array | Start and end offsets for the match in the fragment. |
| items.codeAttachment | string | Attachment URL containing the full matched file content. |