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,你的仓库开始同步。
智能体能做什么
- 在你授权的仓库中搜索代码和读取文件
- 在调查期间拉取拉取请求和提交的上下文
- 为自动修复打开拉取请求,始终供你审查
断开连接
在你的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