Connect Pie Bot
Pie Bot is the GitHub integration that powers Pie Loop. It reads your PR diffs, generates targeted tests, runs them against your preview environment, and posts results directly on the PR. Connecting Pie Bot is what activates Pie Loop for your repository.
What you’ll need:
- A Pie account with an active workspace
- A GitHub account with access to the repositories you want to connect
- GitHub organization admin rights, or the ability to request them (see Step 5)
Step 1: Open Settings from the Dashboard
From the Pie dashboard, click Settings in the bottom of the left sidebar navigation.
Go to Settings from the sidebar, at the bottom of the left navigation
Step 2: Navigate to Integrations and find Pie Bot
In Settings, click Integrations in the left menu. You’ll see a list of available integrations. Find Pie Bot and click Connect to begin the GitHub authorization flow.
Find Pie Bot in Settings → Integrations. Click Connect to begin.
Step 3: Sign in to GitHub
You’ll be redirected to GitHub to authorize the pie-pr-bot app. Sign in with your GitHub credentials if prompted.
GitHub will ask you to sign in to authorize Pie Bot access
Step 4: Select repositories
After signing in, GitHub will ask which repositories Pie Bot should have access to. You can choose:
- All repositories — Pie Bot will run on every PR across your organization
- Only select repositories — recommended for getting started; choose one or two repos to run first
Select your preferred scope and click Install & Authorize.
Step 5: Admin approval (if required)
What Pie Bot requests access to:
| Permission | Level | Why |
|---|---|---|
| Code (contents) | Read | To read PR diffs and understand what changed |
| Pull requests | Read and Write | To post test results and status checks on the PR |
| Repository metadata | Read | To identify repos and branches |
Pie Bot does not store your source code. It does not use your codebase to train any model. Access is scoped strictly to what is needed to generate and run tests from PR diffs.
To approve as an org admin:
- Go to your GitHub organization page and open Settings
- In the left sidebar, click GitHub Apps (under Integrations)
- Find pie-pr-bot in the pending or installed list and click Review request
- Review the requested permissions listed above
- Click Install to approve
Once approved, Pie Bot becomes active immediately. No further action is needed in Pie.
Step 6: You’re connected
Return to Pie. Pie Bot is now active. The next PR your team opens will trigger a test run automatically, and results will appear in Coverage Stories under Pie Loop in the sidebar.
Need Help?
- Support: support@pie.inc