Installation
- Install the Forgecroft GitHub App on your organization or repository
- After installation, you are redirected back to Forgecroft which creates a VCS integration record
- The integration is ready — webhooks are configured automatically
What the GitHub App Provides
Push Webhooks
When you push to a branch, Forgecroft:
- Receives the webhook
- Matches workspaces by
source_branchandsource_root - Creates a changeset and queues a plan run
Pull Request Webhooks
On PR open, synchronize, or reopen:
- Forgecroft fetches changed files from the GitHub API
- Filters workspaces by
source_rootandextra_checkout_paths - Matches workspaces by
pr_base_branch(or falls back tosource_branch) - Creates a changeset with
source_type: "git"andpr_number - Posts a
pendingcommit status - Queues a plan run with
trigger: "pr"
Commit Statuses
Forgecroft posts commit statuses for each matched workspace:
pending— before the run startssuccess— when the plan completesfailure— when the plan fails
PR Comments
If pr_comments_enabled is true on the workspace, Forgecroft posts the plan output as a PR comment. The comment is stale-marked on subsequent pushes.
Path Filtering
Only workspaces whose source_root (or extra_checkout_paths) matches a changed file path are triggered. This prevents unnecessary runs when unrelated files change.
For PRs with more than 300 changed files, Forgecroft triggers all matching workspaces as a safe fallback.
VCS Integration Record
After installation, Forgecroft creates a VCS integration with:
provider:githubinstallation_id: from the GitHub App installationsource_repo_url: from the installation context
This integration can be attached to workspaces via vcs_integration_id.
Related
- VCS Connections — VCS integration management
- Webhook Handler — Technical details of the webhook endpoint