Forgecroft Docs
Guides / Workspaces

VCS Connections

Connect your version control system to enable automatic plans on pushes and pull requests.

VCS integrations connect Forgecroft to your version control system, enabling automatic plan triggers on pushes and pull requests.

Provider Types

ProviderDescription
githubGitHub (auto-detected from URL)
gitlabGitLab
bitbucketBitbucket
generic_gitAny Git server with webhook support

The provider is auto-detected from source_repo_url if not explicitly specified.

GitHub App Integration

The recommended way to integrate with GitHub is through the Forgecroft GitHub App:

  1. Install the GitHub App on your organization or repository
  2. After installation, Forgecroft creates a VCS integration record automatically
  3. The integration uses installation tokens — no personal access tokens needed

What the GitHub App Provides

Token-Based Integration

For non-GitHub providers (or if you prefer not to use the GitHub App), store a Git token:

POST /vcs-integrations/{id}/secrets
{ "git_token": "ghp_..." }

Token-based integrations are rejected for GitHub App integrations — those use installation tokens through the GitHub App flow.

Scoping

VCS integrations can be scoped to:

Project-scoped integrations are created at POST /projects/{projectId}/vcs-integrations.

Path Filtering

When a push or PR webhook fires, Forgecroft filters workspaces based on changed paths:

  1. For each changed file, check if it falls within a workspace’s source_root
  2. Only matching workspaces are triggered
  3. extra_checkout_paths are also considered for matching

If a PR has more than 300 changed files, Forgecroft triggers all matching workspaces as a safe fallback.

PR Matching

For pull request events, Forgecroft matches workspaces by:

  1. Explicit pr_base_branch match (if set on the workspace)
  2. Fallback to source_branch match