Skip to content
Promote Force
Docs: Developer workflow: application projects

Docs

Developer workflow: application projects

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

This page is for developers on an application project. For Salesforce metadata, see Developer workflow: Salesforce projects.

The loop: branch → build and test → push → open a promotion into the first stage → gates and review → deploy → promote on to the next stage. Promote Force does not track your branch while you work. It starts when you open a promotion.

Once: get set up

An owner or admin sets the project up once:

  1. If the code is not on Promote Force Git, connect the host under Integrations and link the repository when creating the project.
  2. Build the pipeline (a template, or Create the pipeline from the file).
  3. Commit a .promoteforce.yml to the repository’s default branch if you want CI gates, manual sign-offs, approvals counts, deploy adapters or agent hints. It is optional.
  4. Give each stage that should deploy a deploy target (Set up target).
  5. Decide who can approve and deploy into each stage. Owners and admins always can; other members need a grant on the stage. Application support never can.

Then, as a developer:

  • Git access.
    • On Promote Force Git: create a Git token under Git access. It is shown once. Your email is the username and the token is the password.
    • On GitHub, Azure DevOps or GitLab: no Promote Force token. Clone and push with your own access on that host (GitHub CLI, an SSH key or a personal access token).
  • You need the developer role or above to open promotions. Viewers and application support can read.
  • Optional: connect your editor over MCP so Claude Code or Cursor can follow your promotions and open one for you.

The Salesforce merge driver (pf git setup) is for Salesforce metadata. You do not need it here.

In the portal

1. Clone

On Promote Force Git, copy the clone command from the project page. It has your Git username in the URL, so git picks the right saved login:

git clone "https://you%40example.com@git.promoteforce.co.za/<org>/<project>.git"

On a customer-hosted repository, clone from the host with your usual access, for example:

git clone https://github.com/<owner>/<repo>.git

“Repository not found” on Promote Force Git for a project you can see? Git sent a login saved for another account. See the FAQ.

2. Branch

Branch from the branch your team builds on, usually the first stage’s branch or the repository’s default branch. Put the Jira key in the branch name and Promote Force links the issue to the promotion automatically:

git checkout -b feature/ABC-123-discount-rules

3. Build and test

Build and test with your own tools. On Promote Force Git the platform runs your agent.test_command for you at the CI gate (see step 6), but you should run it first.

4. Push

git push -u origin feature/ABC-123-discount-rules

On Promote Force Git, main and the stage branches are protected, so push a feature branch. Nothing appears in Promote Force yet. There is no feature branch list, no collision warning and no bundle for application projects.

5. Open a promotion

On the project page, find the first stage in the Stages table and select Promote. (On a stage’s own tab it is Promote here.) In the dialog, Promote into :

  • Branch to promote: your pushed branch, for example feature/login.
  • Title (optional): defaults to “Promote to ”.
  • Jira issues (optional): pick issues. Keys found in the branch name and the title are added for you.

Select Open promotion. Promote Force opens a pull request from your branch into the stage’s branch on the host (a merge request on GitLab). On Promote Force Git there is no pull request object: the promotion is the branch pair, and the merge happens on the server. The promotion’s checks start at once.

Rules:

  • A named branch can only enter the first stage of the pipeline. Later stages are reached from the stage before, with the whole stage branch or one change (see step 8). Trying to promote an arbitrary branch into a later stage is refused with “isn’t an entry stage: promote into it from the stage before it”.
  • One open promotion per branch and stage. Asking again for a branch that is already being promoted is refused (“already being promoted”).
  • Promote is disabled while a deploy is running on that stage.
  • When a stage uses the same branch as the stage before it (a trunk-based pipeline, where UAT and Production are on main), there is nothing to merge. The promotion is a release of the commit already on that branch: it opens without a pull request and deploys that commit.

A promotion moves through these states: draft, validating (waiting for CI and sign-offs), awaiting review (checks passed, waiting for approvals or for someone to deploy), deploying, then deployed or failed. Cancel it any time before it deploys with Cancel promotion on the promotion: the pull request is closed on the host and the branch is kept.

6. Review and gates

Open the promotion from the pipeline canvas (select the stage, then the promotion). It shows a row per gate:

  • Pipeline config: .promoteforce.yml is valid (a missing file passes).
  • Branch policies on : your host’s own branch policies, on GitHub, Azure DevOps and GitLab.
  • Continuous integration: the checks or pipelines the stage’s ci gate names. On Promote Force Git this is the platform’s own verification (promote-force/verify): it installs the app, runs your test command and any API and UI checks an agent wrote. The verification row shows its steps.
  • One row per manual sign-off. Someone who can approve into the stage selects Sign off (or Withdraw).
  • Reviews and approvals: reviewers read the diff, comment inline and approve or request changes under Reviews and approvals. Only approvals on the current head commit count, and the author’s own approval never does. The file can ask for more approvals than the path does; both must be met. On a customer-hosted repository, Count approvals given on the Git host (a project option, on by default) lets the host’s reviewer policies, such as required reviewers, satisfy the gate when the host requires approvals on the target branch.

Keep pushing to your branch to fix problems. Each new push is picked up (Promote Force listens for pushes and also re-checks on a schedule), starts a fresh round of checks and clears sign-offs. Re-run checks (the author or someone who can promote into the stage) runs them again, including the platform verification if it failed. You can edit the Linked Jira issues on the promotion.

If the .promoteforce.yml is broken, every promotion fails the Pipeline config gate until the file on the default branch is fixed.

7. Deploy

When every gate is green and the approvals are in, the promotion shows Merge and deploy (or Deploy, for a release of a commit already on the branch). Someone who can promote into the stage selects it and confirms. For a production stage they type the stage’s name to confirm.

Application promotions do not use the merge queue. Promote Force:

  1. checks the gates one last time and merges the pull request (or the branch, on Promote Force Git), then waits for the host to report it merged (up to about two and a half minutes before it fails with “did not finish the merge in time”);
  2. starts a release of the merge commit through the stage’s deploy adapter (Railway or webhook). Only one deploy runs on a stage at a time;
  3. marks the promotion Deployed when the release succeeds, or Failed with the reason if the merge or the deploy failed.

With no deploy target on the stage, the promotion merges and is marked deployed, with the note that nothing was deployed. If someone completes the pull request on the host themselves, Promote Force notices (from the host’s event, a push or its sweep every three minutes) and treats it as a merge: it starts the release as usual. A pull request closed on the host without merging cancels the promotion.

The promotion shows the release with its View log and, when the adapter has one, Open the deployment.

8. Next: promote to the next stage

Once a promotion is deployed and its stage has a stage after it, the promotion shows Next: promote to with two choices (developers and above). Either one opens a pull request from a branch into the next stage’s branch, and it then goes through the next stage’s own gates and approvals.

  • Promote the stage branch (everything): a pull request from the stage branch into the next stage’s branch, for example integration → uat. Other changes on the stage branch that the next stage does not have yet are listed first, so you see what rides along.
  • Promote just this change: only this change goes on. It is available when the pipeline’s Allow promoting a single change setting is on. That setting is on for pipelines made from the Classic, hotfix and blank templates and off for trunk-based ones, and release managers and above change it in the pipeline settings. Details:
    • If your branch is still at the commit that was deployed, that branch is used. If it was deleted when the pull request completed, it is recreated at that commit. If it has moved on, a branch named <branch>-to-<stage> is created at the deployed commit. The original is never moved or force-pushed.
    • If your branch was cut from the stage branch, it carries the stage’s other commits too. Then only this change’s own commits (those since the point the review was based on) are cherry-picked onto a fresh <branch>-to-<stage> branch cut from the next stage. Promote Force can do that on Azure DevOps and GitLab. On GitHub and Promote Force Git it cannot, and it says so: promote the stage branch, or cherry-pick by hand.
    • If the change edits files that differ on the next stage because they depend on earlier commits that are not there, the cherry-pick is refused and the message names the files.
    • Not offered when the promotion was a release of an existing commit, or when it moved a whole stage branch (use the stage-branch choice).
    • The new promotion keeps the title, description and Jira keys and links back to the first one.

Asking twice returns the promotion that is already open. A confirmation dialog shows what will be opened first.

Releases and rollback

Every deploy is a release: Waiting, Deploying, Deployed, Failed, or Rolled back after a rollback. The project page shows each stage’s last release; a stage’s tab lists them all (Show all for more).

To undo the live release, select Roll back on it (someone who can promote into the stage). The stage’s deploy adapter restores the previous deployment. Only the release that is live can be rolled back, and not while another deploy is running. The promotions stay deployed in Promote Force’s history.

My work

My work in the sidebar lists your in-flight work. For application projects (filter App projects) it lists your open promotions, deployed changes still waiting for Next: promote to …, branches an agent built that have no promotion yet, and, when you ask for them, changes already delivered to the last stage.

What does not exist for application projects

The Salesforce workflow has features that do not apply to application projects: feature branch tracking on My work, collision warnings, dependent features and bundles, Update from main, Pull from my org, the shared dev org, and the Salesforce-aware merge.

From your editor (MCP)

With MCP set up and a token with Can open promotions, you can drive the same loop from Claude Code or Cursor:

  1. Commit and push your branch as usual.
  2. Ask: “open feature/ABC-123-discount-rules into Integration”. The agent runs resolve_checkout (your remote and branch to the project and its open promotions), pipeline_status (to find the stage id) and then promotion_open with project_id, branch and target_stage_id. Use the first stage: a named branch can only enter the first stage.
  3. You confirm. Your editor shows a form, or the agent hands you a link to confirm in Promote Force. Nothing happens before you do.
  4. The promotion opens and its checks start. Follow it by asking the agent: it uses promotion_status, gates_report, run_status and run_failures. It can read review comments (review_comments), reply to a thread (review_reply) and re-run the checks (promotion_recheck). Each of those writes is confirmed the same way.

What still happens in the portal: approving, signing off manual gates, Merge and deploy, Next: promote to …, releases and rollback. Over MCP an agent cannot approve, merge, deploy or override a gate. There is no MCP tool for Next: promote to ….

Promotions into a production stage over MCP are refused unless an owner or admin has allowed that separately. The slash command /promote-current-branch is written for Salesforce feature branches; for an application project just say what you want in words.