← All integrations
GitHub

GitHub integration. Read your code, trace issues to the commit, and open pull requests with fixes.

Polylane links each repository to the services it deploys, traces production issues to the commit that caused them, and opens pull requests with the fix.

Start free

What Polylane does with GitHub.

Your code in the graph

Repositories are indexed for agents to grep and linked to the resources they deploy, so an investigation moves from a failing service to the code behind it without leaving the thread.

Changes become suspects

Pushes, merges, and deployments land on the timeline. When production breaks minutes after a merge, the investigation starts from that merge.

Watches on repo events

A thread can wait on pushes, pull requests, releases, and workflow runs, and pick the investigation back up when they land.

Fixes land where code lives

Investigations that end at a line of code open a pull request on the repo behind the service, with the evidence trail attached. Your review and CI gate the merge.

How to set up GitHub

Paste this prompt into your coding agent. It installs the Polylane CLI if you need it, signs you in and connects GitHub.

Here's what Polylane does with GitHub: Polylane links each repository to the services it deploys, traces production issues to the commit that caused them, and opens pull requests with the fix. I want that, so connect GitHub to my Polylane workspace. If the Polylane CLI isn't installed or I'm not signed in, set that up first by following https://polylane.com/auth.md. Then connect GitHub with `polylane integration connect`: run `polylane integration connect --help` to find the GitHub option and its flags. If the CLI doesn't offer GitHub, open https://console.polylane.com and walk me through connecting it there. The setup steps and the access GitHub needs are at https://polylane.com/integrations/github/. Ask me for anything you need, like a token or an approval in the browser. When you're done, run `polylane integration list` and tell me whether GitHub is connected.

How it works.

01

Install

Install the Polylane GitHub App on your organisation and pick the repositories it can see.

02

Index

Repositories are indexed and matched to the services they deploy, and repo events start landing on the timeline.

03

Agents work with the code

Mid-investigation they grep it, cite it, and when the root cause is a line of code, open the pull request.

GitHub tools.

The calls Polylane can make to GitHub when it looks into an issue.

GitHub
  • githubApi Read any GitHub REST endpoint that lacks a dedicated tool
  • githubFetchFiles Fetch file contents from a GitHub repository
  • githubSearchGithub Search across GitHub repositories, code, issues, pull requests, users, commits, and topics
  • githubCommits Read commits in a GitHub repository (list/getDiff)
  • githubPullRequests Read pull requests in a GitHub repository (list/get)
  • githubClosePullRequest Close a pull request Polylane opened
  • githubWorkflowRuns Read GitHub Actions workflow runs (list/get)
  • githubCreateBranch Create a new branch in a repository
  • githubGetPullRequestDiff Get the diff for a pull request

GitHub setup and troubleshooting

Recent updates

All updates in the changelog

Common questions

How does Polylane work with GitHub?

Polylane links each repository to the services it deploys, traces production issues to the commit that caused them, and opens pull requests with the fix.

Connect it once. Then get back to shipping.