Skip to main content

Integrations

Connect GitHub and enable PR reviews

Put product feedback beside the pull request that can fix it. Flock reviews the PR preview and returns findings, evidence links, and a Preview Gate check.

Installing the App makes repositories available in your workspace. Reviews start only after repository setup and activation.

A product review in the pull request

Suppose a PR changes checkout. Set /checkout as a review target and choose the perspectives that matter to that journey. Once the PR's current preview and repository setup are ready, Flock can review that target and publish the result back to GitHub.

Your team can follow the summary to the review, inspect a finding's evidence, and decide what to fix while the code change is still in context. Inline comments appear when findings can be mapped to changed code. Read findings and evidence before treating a check's conclusion as a complete assessment of the product.

Before you start

Sign in to Flock and select the workspace where you want the reviews to live. A workspace owner or admin must connect GitHub and change integration settings. You also need a GitHub account that can access and manage the App installation for the repository owner.

Have an open PR from a branch in the same repository, a supported preview deployment, and the personas or population you want to test. Fork PRs are not supported by this review flow. Draft PRs are excluded by default.

A GitHub App installation belongs to one Flock workspace. A workspace can connect multiple GitHub organizations or personal accounts. GitHub repository access and Flock review enablement are separate choices.

1. Connect your GitHub account

  1. In Flock, open Settings → Integrations. Find the GitHub card and choose Connect GitHub. Keep the intended workspace selected throughout setup.
  2. In the GitHub tab, choose the organization or personal account that owns the repositories. Grant the App access to the repositories you want to review and approve the requested permissions. Start through Flock so the installation is linked to your selected workspace.
  3. Complete the GitHub authorization and return to Flock. Look for Connected, the account name, and a repository list. Choose Refresh if needed. Newly connected repositories start disabled.

Already installed? Choose Reconnect installed account and select the account if prompted. Use Add another account for another organization or personal account. Use Manage GitHub app to change repository access in GitHub.

Disconnecting in Flock stops Flock CI for the affected workspace connection; it leaves the App installed in GitHub so you can reconnect later. Uninstalling or suspending the App in GitHub disables its mapped repositories.

What you authorize in GitHub

Review the permissions on GitHub’s installation screen. The integration uses these repository permissions; the screen shows the permissions requested by the App in your environment. Accept updated permissions if GitHub prompts after an App update.

Contents: read

Read repository configuration and source context.

Pull requests: read and write

Read PR metadata and publish review feedback.

Issues: read and write

Post PR summary comments and handle @flock commands.

Checks: read and write

Publish the Flock CI / Preview Gate check.

Deployments and commit statuses: read

Find preview deployments and their status.

Actions: read; write when preview setup requires it

Read workflow evidence. Some supported preview publishing connections also need write access to dispatch their workflow.

2. Check the repository preview

Under the repository name in the GitHub card, choose Review settings and setup. The repository page contains Shared preview setup and Review settings.

If you already use Netlify or Vercel previews, keep that provider. In Shared preview setup, enter a PR number and choose Check setup and prepare GitHub report. Read the report, use Copy instructions for the suggested repairs, and check the displayed GitHub delivery status. You can run this check before reviews are enabled; it does not start or bill a review. Without a PR selected, instructions stay on the page and the report waits for an eligible PR event.

For a static npm application that needs a preview destination, Shared preview setup can connect a customer-owned S3 and CloudFront destination. Follow the generated setup instructions and complete verification before enabling reviews.

Flock resolves the preview URL from supported deployment or provider evidence tied to the PR’s exact current head commit. Use an HTTPS preview of the app. A provider dashboard link or a pasted URL alone does not establish review readiness. Targets such as /checkout run on the resolved preview; they do not configure the preview provider.

In Review settings, enter PR number and Current head commit, then choose Inspect PR. Use the complete head SHA, not a short commit identifier. If you push another commit, inspect the new head and wait for its preview.

3. Choose targets, personas, and review timing

In Review settings, open Settings. Use Repository overrides for this repository or Workspace defaults for shared preferences. Choose review targets and select default personas or a population; targets can also have their own selections. Review the changes and choose Save preferences.

Start with a target your team can act on: signup, pricing, or checkout. Choose a small set of relevant personas and keep those selections consistent for comparisons. For example, a checkout target and a pricing target can use different perspectives when they serve different tasks.

Review mode defaults to manual. Set it to automatic for eligible PR reviews when a supported preview is ready. Use label with Required labels to limit reviews to PRs carrying at least one configured label. In manual mode, inspect the PR and use PR status → Run with latest settings after setup is ready.

Include draft pull requests and Review new commits control drafts and updates. Base branches, head branches, and allowed actor associations can further narrow eligible PRs. These preferences do not override repository access or security restrictions.

You can also commit .flock.yml at the repository root. This v2 example selects automatic reviews and a checkout target. Select personas or a population in Settings before activation; this example inherits those selections.

version: 2
review:
  mode: automatic
  include_drafts: false
  on_updates: true
github:
  check_conclusion_mode: advisory
targets:
  - key: checkout
    path: /checkout

For label mode, replace the review section with:

review:
  mode: label
  labels:
    - ux-review

Explicit YAML values take precedence over repository overrides, workspace defaults, and Flock defaults. PR inspection reads configuration at that PR’s head commit; default-branch inspection reads the default branch. YAML-owned settings must be edited in the file. Existing v1 repositories require the reviewed setup and migration flow; changing version alone does not migrate enrollment.

4. Enable reviews

  1. For public app pages, keep Public pages (no saved sign-in) in the repository’s Saved sign-in selector. For authenticated flows, use Manage saved sign-ins on Settings → Integrations, add or reconnect a sign-in, then select the ready sign-in for this repository. GitHub authorization does not sign Flock into your app.
  2. In Review settings, open Setup. Check configuration diagnostics, the exact preview, saved sign-in, selected personas, and estimated usage. For authenticated reviews, review and approve the repository alias for the selected saved sign-in and its preview origin when prompted.
  3. For initial setup or a v1 migration, choose Review setup and migration and inspect the proposed preferences. For v1, retain the original configuration commit requested by the form.
  4. Confirm I reviewed the settings and estimated usage, then choose Enable Flock CI. If selected personas need preparation, use the displayed preparation flow and choose Prepare and activate. Reviews remain paused if preparation cannot finish.

Successful setup shows active review enrollment and an enabled repository. Use Refresh setup to read the current state. Pause reviews stops new automatic admissions; previously admitted work may finish subject to security checks.

5. Verify a review and read the result

Open or update an eligible PR, or use Run with latest settings for a manual review. In PR status, distinguish current readiness from the recorded review outcome. A ready preview or an acknowledged request is not a completed review.

On the PR, look for the Flock CI / Preview Gate check and Flock’s summary comment. Follow the review and evidence links. Inline comments appear when a finding can be mapped to changed code; other findings remain in the summary and Flock review. Directional observations are labeled separately and do not block the gate.

The default baseline policy uses the first successful run for each PR target to establish its baseline. Read the check’s run outcome before treating a green result as evidence of a comparison against production.

GitHub result can be advisory or required_compatible. Advisory mode can publish success, failure, or neutral. Required-compatible mode publishes success only for a merge-green result and failure otherwise. To require the check for merging, configure the required check separately in GitHub.

In a PR comment, authorized repository owners, members, and collaborators can use @flock status, @flock rerun, or @flock help. Reruns still check current access and readiness. In Flock, Run with latest settings starts a new manual operation; Retry this attempt recovers the original attempt with its frozen settings.

If setup gets stuck

The GitHub tab never opens

Allow pop-ups for Flock, then choose Connect GitHub again.

Setup failed or the workspace changed

Switch back to the intended workspace and restart the connection. An expired setup session must be started again in the same browser.

Your account cannot access the installation

Use a GitHub account with access to manage the installation. If organization approval is needed, ask your GitHub administrator to complete it, then reconnect.

No repositories available, or one is missing

Choose Manage GitHub app, grant the App access to the repository in GitHub, then Refresh in Flock. If setup reports too many repositories, select fewer; synchronous setup supports up to 49 repositories per installation.

The installation belongs to another workspace

Return to the workspace that already owns the connection. Disconnect it there before connecting it to a different workspace.

Reviews remain off or paused

Open Review settings and setup → Setup. Inspect the current PR and head commit, resolve the reported configuration, preview, saved sign-in, persona, or usage requirement, then enable reviews. Installation alone does not activate reviews.

No preview observed yet

Wait for the preview build for the current head commit. Use Check setup and prepare GitHub report for repair instructions, then Inspect PR and Refresh setup again. A successful older deployment does not establish readiness for the current head.

Saved sign-in is unavailable

Use Manage saved sign-ins to reconnect it, or explicitly select another ready sign-in. Check the repository alias and preview origin approval in Setup for authenticated reviews.

No automatic review starts

Check Review mode: the default is manual. Also check draft, label, branch, and actor filters, and Review new commits. Fork PRs are not supported by this review flow.

Setup is unavailable or GitHub delivery fails

Refresh setup and read the reported reason. If the problem persists, contact Flock with the workspace, repository, PR number, current head commit, and displayed error. Do not share credentials.

Need help with repository setup?

Send the repository, preview provider, and displayed setup reason. We can help identify the next step without asking you to share credentials.

Contact Flock support