Skip to content
Promote Force
Docs: Concepts

Docs

Concepts

Signed in? Open this page in the app, with links straight to your team's screens.

The handful of ideas behind every Promote Force pipeline. Read this once and the canvas will make sense.

Projects and Git hosts

A project is one Git repository, promoted through a pipeline. There are two kinds:

main is always what is in production. Most of this page describes Salesforce projects; where application projects differ, it says so.

Stages

A stage is one environment on your pipeline, linked to a Salesforce org and (usually) a Git branch.

  • Developer stages sit on the left of the canvas. Each belongs to one developer and points at their personal org (a scratch org, sandbox or Developer Edition org). You add your own from the pipeline canvas.
  • Shared stages are the team’s environments: Integration, UAT, Pre-prod, Hotfix and Production. Owners, admins and release managers manage them.
  • Every shared stage has a branch (for example integration or uat). Several stages may share one branch: Pre-prod, Hotfix and Production can all be on main.
  • On Promote Force Git, stage branches and main are protected. Nobody can push to them; only Promote Force updates them. That keeps each branch an exact record of what was deployed. On a repository that stays on your own GitHub, Azure DevOps or GitLab, Promote Force changes no branch policy unless an owner or admin opts in for the project (see Application projects).

The arrows between stages are promotion paths. Each path carries its own rules: test level, minimum per-class coverage (75% by default), required approvals and reviewers, and an optional Jira status (see Approval gates and designated approvers).

Promotions

A promotion is Promote Force’s pull request: a request to take a feature branch into one stage. You open one from the feature’s page with Promote to … (for an application project, from the project page with Promote, naming the branch). It is reviewed in Promote Force (diff, Salesforce-aware summary, inline comments, approvals) and then deployed.

  • Any developer can open a promotion. Who can approve or deploy into a stage is set per stage.
  • Only approvals on the current head commit count, and authors can’t approve their own promotion. Pushing new commits asks for a fresh review. A path can name required reviewers (such as the tech lead) and count only designated approvers. When the team allows it, owners and admins can approve their own promotions and stand in for those rules (an audited admin override).
  • A feature that depends on another can be promoted together with it as one bundle (see dependent features and bundles).

Promotion branches

Your feature branch never receives other stages’ changes, so it stays promotable to each stage on its own. Instead, every promotion gets its own branch, pf/<feature>--<stage-branch>:

  • Promote Force creates it from your feature and merges the stage branch in, using the Salesforce-aware merge.
  • New commits on your feature are merged into every open promotion branch automatically.
  • If the merge conflicts, the promotion is marked Conflicted and lists the files and components. You resolve it on the promotion branch. See Resolving conflicts.

Collisions

Promote Force knows which Salesforce components each feature changes (computed from its diff against main). When two features change the same component, or one changes a field and the other its object, they collide. You see it:

  • right in your terminal when you push:

    remote: ⚠ feature/SOM-692-order-flow (Lukasz) also changes Custom Field Account.Status__c
    
  • on the feature page, with the other feature and its author.

A collision is a heads-up to talk to your teammate early, not an error. The push always goes through.

Dependent features and bundles

Feature B depends on feature A when B was branched from A (Promote Force detects it on B’s first push) or when someone records it by hand on B’s feature page. Dependencies can’t form a cycle, and one removed by hand is never detected again.

  • B can reach a stage only after A has been deployed there. Until then the feature page shows “Waiting for A”, and a promotion of B alone is blocked by its merge checks, which say which feature it waits for.
  • Or promote them together: Promote together… opens one promotion with both features, a bundle. Its promotion branch merges every feature’s head (plus anything they depend on that isn’t in the stage yet) and then the stage branch.
  • A bundle is one change from then on: one review, one set of gates, one place in the merge queue, and the next promotion opens for the whole bundle. New commits on any of its features are merged into the bundle’s promotion branch.
  • A feature that is already in an open promotion into the stage can’t join another bundle there. Wait for that promotion to deploy, or cancel it and promote them together.

Keeping features fresh

Because main only ever holds production, updating a feature from it never pulls in other people’s unreleased work. After every production deploy, each open feature is offered Update from main, which Promote Force runs for you (automatically, if you opted in and your feature doesn’t touch what was just deployed). See Keep fresh.

Gates

Every time a promotion’s head changes, its gates run: merge checks (collisions and dependencies), static code analysis, a check-only validation with per-class coverage, and the Jira status check when the path requires one. The promotion only moves on when they pass.

Application projects have different gates: the pipeline file’s config, your CI, approvals, manual sign-offs and your host’s branch policies. See Application projects.

Merge queue

Each shared stage of a Salesforce project has a merge queue. (Application promotions are merged and deployed by a person selecting Merge and deploy, one deploy per stage at a time.) Approved promotions with green gates join it, enqueued by someone who can promote into the stage (or automatically, if the path says so). Promote Force merges a batch of them onto the stage branch, validates the batch once against the org, then quick-deploys it and moves the stage branch forward. If a batch fails, it is split to find the culprit, which goes back to its author while the rest carry on. Risky changes can deploy alone.

After a deploy, the promotion into the next stage opens automatically and linked Jira issues are updated.

Releases (stages on one branch)

When two stages share a branch, for example Pre-prod and Production both on main, the path between them has nothing to merge. A release promotion deploys everything the stage before has deployed that the next one doesn’t have yet, in order. You can’t cherry-pick single features out of it.

  • A release opens by itself after a deploy into the stage before (or with Release to … in the stage panel) and lists the promotions it contains.
  • It runs the same gates and needs the same approvals as any promotion. When more changes reach the stage before, the open release moves to them and asks for a fresh review.
  • It is validated and quick-deployed on its own through the merge queue.

Hotfix lane

The With hotfix lane template adds a Hotfix stage on main next to Pre-prod. An urgent fix branches from main, is promoted into Hotfix (merged into main and deployed to the hotfix org), then goes to Production with a release. Back-propagation then carries it down to UAT, Integration and the developer orgs.

Back-propagation

When a change reaches a stage, every stage on another branch that feeds it (including developer stages) gets a sync promotion with what that stage has deployed, so environments don’t drift apart and later merges stay clean. A release counts too: a hotfix released to Production syncs into UAT, which syncs into Integration, and so on down.

  • There is one open sync per stage pair; newer deploys update it. It is shown with the ← count on the stage and under Sync in the stage panel.
  • Syncs run the same checks but need no approvals, and deploy by themselves. A sync into your personal org waits for you when it changes components one of your active features changes, so it never overwrites work in progress.
  • A stage with a branch receives the sync through a pf/sync/… branch; conflicts are resolved there, like a promotion branch. A sync with nothing new closes by itself.
  • Pipelines do this automatically, or on demand with Create sync PR when automatic back-propagation is off. Changes synced into your personal org are never shown as yours in Pull from my org.

Shared dev org

A Salesforce project can have one shared dev org, set on the project page by a release manager. Before you promote, you can validate or deploy your branch there, with its Apex tests. It is optional, and no promotion requires it. After each production deploy the changes are deployed to the dev org too, so production stays the baseline. Agents use it to check their work. See step 5 of the workflow.

Application projects: promote on

Once an application promotion is deployed and its stage has a stage after it, the promotion offers Next: promote to … with two choices: promote the whole stage branch, or just this change (when the pipeline allows it). Either way the new promotion goes through the next stage’s own gates and approvals. See step 8 of the application workflow.

Branching model

Features branch from main (production). Each one can be promoted and released on its own; collision warnings, dependent features and the Salesforce-aware merge take away the usual cost of that model.

Teams that prefer trunk-based development can pick the trunk-based template: every shared stage is on main, features merge into main at Integration, and UAT and Production are releases of what the stage before them has deployed.