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.

Connect

Connect GitHub from the terminal. Pass --help for the flags GitHub accepts.

Terminal
polylane integration connect --type github

Tools

14

Operations 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

8

Events 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

10

Side 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

5

Pre-built automations that use GitHub. Open one to see its trigger, instructions, and actions.