git
GitHub
GitHub
Give agents access to your GitHub repositories for code search, pull request context, and codebase understanding. Agents can browse files, understand your architecture, and provide more accurate answers grounded in your actual code.
連接
從終端機連接GitHub。傳入--help可查看GitHub接受的旗標。
Terminal
polylane integration connect --type github在你的組織上安裝Polylane GitHub App。
GitHub透過安裝Polylane GitHub App以OAuth連接。沒有權杖需要管理,而且你可以精確選擇Polylane能看到哪些儲存庫。
設定
- 點擊Connect GitHub。你會被重新導向到GitHub安裝Polylane GitHub App。
- 選擇要安裝到哪個組織或帳戶。
- 授予所有儲存庫的存取,或挑選特定的儲存庫。之後可以在GitHub中變更這個選擇。
- 核准安裝。你會回到Polylane,儲存庫開始同步。
代理能做什麼
- 在你授予的儲存庫中搜尋程式碼並讀取檔案
- 在調查期間取得pull request與提交的情境
- 為Autofix開啟pull request,永遠交由你審查
中斷連接
在你GitHub組織的Settings → GitHub Apps底下移除Polylane GitHub App,或從Polylane中斷它的連接。
中斷連接
中斷連接會停止所有同步與檢查,並刪除Polylane持有的憑證。 Polylane會移除GitHub的API允許它移除的東西。以下項目會留下,直到你自行移除:
- polylane/onboarding/* branch and Set up Polylane PR
- autofix branches and PRs
- check runs on past commits
GitHub是透過應用程式安裝連接的,所以中斷連接在GitHub那一側進行:從你的已安裝的GitHub Apps解除安裝Polylane應用程式。Polylane會收到通知並移除這個整合。
工具
14代理可以在對話串中執行的操作。
Api
Read any GitHub REST endpoint that lacks a dedicated tool
Fetch Files
Fetch file contents from a GitHub repository
Search Github
Search across GitHub repositories, code, issues, pull requests, users, commits, and topics
Commits
Read commits in a GitHub repository (list/getDiff)
Pull Requests
Read pull requests in a GitHub repository (list/get)
Create Pull Request
Create or update a GitHub pull request
Merge Pull Request
Merge a pull request
Close Pull Request
Close a pull request Polylane opened
Create Issue
Create or update a GitHub issue
Workflow Runs
Read GitHub Actions workflow runs (list/get)
Create Branch
Create a new branch in a repository
Get Pull Request Diff
Get the diff for a pull request
Create Review Comment
Create or update a pull request review comment
Submit Review
Submit a review for a pull request