LaneshotDocs

Search the docs

Find a page or a section

Open Laneshot

Integrations

GitHub

Link repositories or whole organizations to a project, file cards as GitHub issues with their captures attached, and keep cards in sync when issues close.

Laneshot files cards as GitHub issues. The issue body already holds the card's description, a summary of every attached capture, and a link back to the card. When the issue closes on GitHub, the card follows.

The integration has two layers:

  • GitHub accounts are credentials that can reach repositories: an OAuth connection, a personal access token, or a GitHub App installation.
  • Linked repositories decide which of those repositories a project can file issues in. You can link single repositories or a whole organization.
The GitHub tab of a project's settings, with the Acme organization linked
Project settings, GitHub tab: the connected account and the repositories Acme Storefront can file issues in.

Connect a GitHub account

You can connect GitHub in three ways. Pick the one that matches how your organization manages access.

Method Who sets it up Where Best for
OAuth ("Connect GitHub") A project or organization admin Project settings, GitHub tab Most teams. One click, no token to copy.
Personal access token An organization admin GitHub in the sidebar (/<org>/settings/github) Bot accounts and GitHub Enterprise Server without OAuth.
GitHub App An organization admin GitHub in the sidebar (/<org>/settings/github) Organizations that don't want issues tied to a person.

Issues are created with the credentials of the account you connect, so they appear on GitHub as authored by that account.

OAuth

The Connect GitHub button appears once the server has an OAuth App configured.

  1. On GitHub, open Settings, Developer settings, OAuth Apps, then New OAuth App. For an organization-owned app, start from the organization's settings instead.
  2. Set Homepage URL to your Laneshot address, such as https://laneshot.acme.com.
  3. Set Authorization callback URL to <APP_URL>/api/github/oauth/callback, for example https://laneshot.acme.com/api/github/oauth/callback.
  4. Generate a client secret, then add both values to the server configuration and restart:
GITHUB_OAUTH_CLIENT_ID=Ov23liAcmeExample
GITHUB_OAUTH_CLIENT_SECRET=<client secret>
  1. In Laneshot, open the project's Settings, choose the GitHub tab, and select Connect GitHub.

Laneshot asks GitHub for the repo and read:org scopes. repo lets it list private repositories and create issues in them; read:org lets it list the repositories of organizations you belong to. The token is encrypted before it's stored.

Personal access token

  1. Create a token on GitHub under Settings, Developer settings, Personal access tokens.
    • A classic token needs the repo scope, plus read:org to see organization repositories.
    • A fine-grained token needs Issues: Read and write and Metadata: Read on the repositories you want to file in. Add Webhooks: Read and write if you want Laneshot to register webhooks itself.
  2. In Laneshot, open GitHub in the sidebar. Choose a name the team will recognize, such as "Acme org", select Access token as the type, and paste the token.

Laneshot lists the repositories the token can reach before saving it, so a typo or a missing scope is reported immediately instead of when someone files an issue.

GitHub App

Use an app when issues should be created by the app rather than by a person.

  1. Create a GitHub App with the Issues: Read and write and Metadata: Read repository permissions, and install it on your organization.
  2. Add the app's ID and private key to the server configuration. Write the PEM key on one line with \n for line breaks:
GITHUB_APP_ID=123456
GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nMIIE...\n-----END RSA PRIVATE KEY-----"
  1. In Laneshot, open GitHub in the sidebar, choose GitHub App as the type, and enter the Installation ID: the number at the end of the installation's URL on GitHub.

The GitHub App option stays disabled until GITHUB_APP_ID is set on the server.

An installation can belong to one organization only. When the server hosts several organizations, Laneshot also checks that the installation is yours before saving it: it asks GitHub which account the installation belongs to, then checks that one of the organization's OAuth or token connections signs in as that account, or as an active member of that GitHub organization. Connect GitHub with such an account first if Laneshot asks you to.

A connected account can reach many repositories. Each project chooses which ones it files issues in.

  1. Open the project's Settings, then the GitHub tab.
  2. If you connected more than one account, pick one from the GitHub account menu.
  3. In Linked repositories, search and check the repositories to link.

To include every repository of an owner, check All repositories in acme. New repositories added to that organization later are included automatically.

Linking is checked again on the server every time an issue is created: a request for a repository that isn't linked to the project is refused, even if the account could reach it.

Who sees which repositories

An OAuth account or a personal access token reaches every repository its owner can, including their private personal ones. So it stays with the person who connected it:

  • Only the person who connected an account sees its list of repositories and links new ones from it. Everyone else sees whose it is, as "@octocat · connected by Maya Chen", and a note to connect their own account instead. The server refuses the list and new links for anyone else, too.
  • Linked repositories are shared with the project. Everyone who manages the project sees them and can unlink them, and everyone who can file cards can create issues in them, through the connector's account.
  • GitHub App installations are the exception: an admin chose their repositories on GitHub, so anyone who manages the project can browse and link them.
  • Accounts connected before Laneshot recorded who connected them can be browsed by organization owners. Connect the account again to make it yours.

Linking All repositories in your own personal account shares every repository in it, private ones included, with the project's members, so Laneshot asks you to confirm. Link the repositories you need one by one instead, or link a GitHub organization.

When someone deletes their Laneshot account, the GitHub accounts and tokens they connected are removed with it, and the repositories linked through them are unlinked. Issues already filed keep their link to GitHub.

Create an issue from a card

Anyone with the Technical or Project admin role in the project can file a card. See Members and roles.

  • Right-click a card on the board and choose Create issue, or
  • Open the card and select Create issue.

The dialog lists every linked repository, along with the destinations of your other issue trackers. Laneshot remembers the last destination used in each project.

The Create issue dialog with acme/storefront selected
The Create issue dialog. The description is prefilled with the card's details and a summary of each capture.

The title defaults to the card's title, and the description is prefilled. You can edit both before creating the issue. The body looks like this:

The pay button stays disabled after the card form is valid.

### Captures

#### [Checkout fails after paying](https://laneshot.acme.com/traces/0b1f…)

- **Page:** https://shop.acme.com/checkout
- **Browser:** Chrome 131 on macOS 15.1
- **Viewport:** 1440×900 at 2x
- **Console errors:** 3
- **Failed requests:** 1 of 42

---

Created from [SHOP-12](https://laneshot.acme.com/projects/…?card=12) in Laneshot.

Capture links point to the public link when the trace has one, and to the private trace page otherwise. Private pages need a Laneshot account in the project.

Created issues appear on the card under Linked issues, on the board tile, and in the trace's activity.

Keep cards in sync

Webhooks

When Laneshot creates the first issue in a repository, it registers a repository webhook for the issues event. When an issue closes on GitHub, Laneshot:

  1. Updates the issue's state and title on the card.
  2. Runs automations that use the A linked issue is closed trigger.
  3. Moves the card to the last column of the board once all of its linked issues are closed.

Webhooks are registered only when GitHub can reach your server:

  • APP_URL uses https and isn't localhost or 127.0.0.1, or
  • GITHUB_WEBHOOK_URL is set, for example to a tunnel during development.

Deliveries go to <APP_URL>/api/github/webhook and are verified with the X-Hub-Signature-256 header. The secret is GITHUB_WEBHOOK_SECRET when set, and is otherwise derived from ENCRYPTION_KEY, so webhooks work without extra configuration. Requests with a missing or wrong signature are rejected with 401.

Every organization on the server shares that one webhook per repository. An event updates only the cards of organizations that filed an issue in that repository (or that own the GitHub App installation it came from), never cards elsewhere that happen to point to the same issue.

Registration needs permission to manage webhooks on the repository. If the account can create issues but not webhooks, the issue is still created and the failure is logged on the server.

Refresh by hand

Each issue on a card has a refresh button. It reads the issue's current state from GitHub and applies the same rules as a webhook. Use it when webhooks can't reach your server.

GitHub Enterprise Server

Point Laneshot at your instance with two variables:

GITHUB_API_URL=https://github.acme.com/api/v3
GITHUB_WEB_URL=https://github.acme.com

GITHUB_API_URL is used for API calls. GITHUB_WEB_URL is used for the OAuth sign-in pages.

Troubleshooting

Message or symptom What to do
No Connect GitHub button Set GITHUB_OAUTH_CLIENT_ID and GITHUB_OAUTH_CLIENT_SECRET, then restart.
"GitHub rejected the credentials while trying to …" The token was revoked or expired. Connect the account again.
"The GitHub connection doesn't have permission to …" The token lacks a scope, or the organization hasn't approved the OAuth App.
"Issues are turned off for this repository." Enable issues in the repository's settings on GitHub.
"acme/web isn't linked to this project." Link the repository in the project's GitHub tab.
"Only Maya Chen can link repositories from this account." The account is someone else's. Connect your own GitHub account, or ask them to link the repository.
Cards don't move when issues close Check that the server is reachable over HTTPS, or set GITHUB_WEBHOOK_URL. Use the refresh button in the meantime.
"GitHub App credentials are missing from the server configuration." Set GITHUB_APP_ID and GITHUB_APP_PRIVATE_KEY.