git
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持有的凭据。 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