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.
Connect
Connect GitHub from the terminal. Pass --help for the flags GitHub accepts.
Terminal
polylane integration connect --type githubInstall the Polylane GitHub App on your organization.
GitHub connects through OAuth by installing the Polylane GitHub App. There are no tokens to manage, and you choose exactly which repositories Polylane can see.
Setup
- Click Connect GitHub. You are redirected to GitHub to install the Polylane GitHub App.
- Choose the organization or account to install it on.
- Grant access to all repositories or pick specific ones. You can change this selection in GitHub later.
- Approve the installation. You are returned to Polylane and your repositories start syncing.
What agents can do
- Search code and read files across the repositories you grant
- Pull pull-request and commit context during investigations
- Open pull requests for autofixes, always for you to review
Disconnecting
Remove the Polylane GitHub App from your GitHub organization under Settings → GitHub Apps, or disconnect it from Polylane.
Tools
14Operations agents can perform in threads and automations.
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
Automation triggers
8Events from GitHub that can start an automation.
GitHub Push
Fires when one or more commits are pushed to a branch on a connected GitHub repository.
GitHub PR
Fires when a pull request is opened, edited, synchronized, reopened, marked ready, closed, merged, labeled, or assigned.
GitHub Deploy
Fires when a GitHub Deployment is created or transitions to success, failure, pending, or in_progress.
GitHub Actions
Fires when a GitHub Actions workflow run starts or completes (with conclusion success, failure, cancelled, or timed_out).
GitHub Release
Fires when a GitHub Release is published, created, edited, or deleted on a connected repository.
GitHub Issue
Fires when an issue is opened, edited, closed, reopened, labeled, unlabeled, or assigned.
GitHub Comment
Fires when a comment is added, edited, or deleted on an issue or PR conversation thread.
GitHub Review Comment
Fires when an inline review comment on a PR diff line is created, edited, or deleted.
Automation actions
10Side effects an automation can perform with GitHub.
Submit Pull Request
Opens a pull request on the target GitHub repo from a branch the agent has already pushed during the run.
Comment on Pull Request
Posts a plain markdown comment on a pull request's conversation tab (not a review, not inline).
Comment on Issue
Posts a plain markdown comment on a GitHub issue.
Merge Pull Request
Merges the triggering pull request using one of the configured `allowedMethods` (merge, squash, or rebase).
Create Issue
Opens a new GitHub issue on the target repo with title, markdown body, labels, and assignees.
Autofix
Queues an autofix run that implements the agent's plan and opens a pull request, using the workspace's default autofix executor.
Hand off to Devin
Delegates implementation to Devin: the agent writes the plan and Devin opens the pull request itself.
Hand off to Cursor
Delegates implementation to Cursor: the agent writes the plan and a Cursor cloud agent opens the pull request itself.
Hand off to Factory
Delegates implementation to Factory: the agent writes the plan and a Factory droid opens the pull request itself.
Hand off to Conductor
Delegates implementation to Conductor: the agent writes the plan and a Conductor cloud agent opens the pull request itself.
Automation templates
5Pre-built automations that use GitHub. Open one to see its trigger, instructions, and actions.
Generate weekly report
Compile a weekly engineering report covering incidents and deployments
On-call handoff brief
Monday morning briefing summarizing all incidents, alerts, deployments, and infrastructure changes since the last handoff
Track deployment frequency
Generate weekly reports on deployment frequency, lead time, and failure rates
Weekly GitHub security digest
Compile a weekly GitHub report on security events, vulnerabilities, and access changes
Babysit GitHub deployment
On every GitHub deployment, run pre-flight checks and post-deploy health monitoring, opening an incident with a rollback recommendation when degraded.