The short version
- PR-gated Salesforce change workflow: the git log, grep and diff commands that show what a new metadata change touches, for admin leads.
Contents
- 1How do you read a PR-gated Salesforce change workflow you just inherited?
- 2Which flows, triggers and syncs touch the same object?
- 3What do the merge commits say about AI-authored changes?
- 4How do you find drift and hotfixes?
- 5Which tools help with a PR-gated Salesforce change workflow?
- 6What should you do in the first week?
To find what a new metadata change touches in an inherited PR-gated Salesforce change workflow, read four things in Git: the changed file's own history, every other file that names the same object, the merge commits on the main branch, and the gap between main and production. Each takes a handful of commands.
The repository remembers what the org's admins forgot. A flow, an Apex callout and an external-ID field sit in the same tree, and the history shows which of them moved together.
How do you read a PR-gated Salesforce change workflow you just inherited?
Start at the changed file and walk outward. Read its history, search the repository for every file naming the same object, then read the merge commits that brought them in. The pull request description is the closest thing to a design note, so read it before the diff.
Co-change is the useful signal. If a field has never been edited without a flow and a named credential changing in the same commit, you have found a dependency nobody wrote down. That is the sync worth worrying about.
Which flows, triggers and syncs touch the same object?
These commands assume source-format layout under force-app/main/default. Adjust the paths to your repo.
git log --follow --stat --date=short --format='%h %ad %s' -- force-app/main/default/objects/Opportunity/fields/Stage_Detail__c.field-meta.xml
git grep -l "<object>Opportunity</object>" -- force-app/main/default/flows
git grep -l "on Opportunity" -- force-app/main/default/triggers
git grep -n "callout:" -- '*.cls'
git log -S"Stage_Detail__c" --oneline
The first line lists the commits that touched the field, with companion files. The second finds record-triggered flows whose start element names the object. The third finds Apex triggers on it. The fourth finds outbound callouts through named credentials, which is where a sync lives. The last is the pickaxe: it returns the commit that added or removed a string, so references inside flows and classes show up with a date.
Then run git blame on the callout lines and read the pull request behind each one. Ask what the idempotency key is and where it is stored. An external-ID field on the object is usually the answer, and its file history tells you when it arrived. If it arrived after the sync did, records written before that date may be duplicated.
Git cannot tell you firing order. If your flow metadata carries a trigger order value, record it. Where it does not, treat the order as unspecified and test it in the sandbox before the pull request merges. Check this against your org's current API version, since metadata fields change between releases.
One failure mode to look for: a flow updates the record, then an Apex callout fails later in the same transaction path. A partial write and a failed write need different repairs, and only the history shows which one the code was written to handle.
What do the merge commits say about AI-authored changes?
They say whether the gate was real. List them:
git log --first-parent --merges --date=short --format='%h %ad %s' main
git log --first-parent --no-merges --format='%h %ad %s' main
The first shows pull requests that merged. The second shows commits that reached main without one. If you squash-merge, the second command returns everything, so check the pull request references in the commit subjects instead. For each merge, confirm that the approving role differs from the authoring role, that a sandbox validation result is attached, and that the description says what the change was meant to do.
In a PR-gated Salesforce change workflow, an AI-drafted change should look no different from a human one in this history, and that is the point. In a FlowSprite setup, any MCP client drafts the change, FlowSprite AI lands it as a pull request in the customer's own private repository, tests it in a sandbox first, and waits for a human to approve before deploying. Every tool call the AI executes is audited. The audit log is one input, not a complete record, so the pull request history still has to carry the intent.
How do you find drift and hotfixes?
Retrieve production metadata into a scratch branch and diff it against main:
git diff --stat main..prod-snapshot
git log --grep="hotfix" -i --date=short --format='%h %ad %s'
git log --diff-filter=D --name-only --format='%h %ad' -- force-app/main/default/flows
Any file that differs with no commit explaining it is a manual change made in the org. A hotfix commit dated after the sandbox merge it should have followed means promotion ran backwards, so the next sandbox refresh will quietly undo it.
The third command lists deleted flows. Read it for precedent. Sometimes the right answer is to delete the automation: a flow whose last meaningful commit is years old, on an object where a newer flow does the same job, is a liability. Deleting it through a pull request leaves the reason on record.
Which tools help with a PR-gated Salesforce change workflow?
Judging from published pages rather than demos, the options split on pricing model and on where the record lives.
- Salto describes AI agents drafting governed changes with PR-gated approval across several business apps, and its pricing page, captured 2026-09-29, did not give a flat figure.
- Hutte is git-based with a visual interface and leads with a headless MCP capability on its homepage. Its pricing page, captured the same day, listed seat pricing from EUR75 to EUR150 per user per month.
- Gearset's homepage, captured 2026-10-15, cites a 99% deployment success rate and an agentic teammate, with a broad CI/CD scope.
Flat pricing from FlowSprite AI runs EUR 99 per month for the professional plan (10 users, 6 Salesforce connections, drift detection, cross-org compare, dependency analysis, deploy preview) and EUR 199 for the enterprise plan, which adds approval workflows with separation of duties and audit log export. The metadata record stays in a repo you own, with no vendor layer between. For an inheriting lead who needs the history in their own repository, and a bill that does not grow with each new reviewer, that is the stronger fit. A team already deep in a broader CI/CD suite has fair reasons to stay put.
What should you do in the first week?
- Run the object search for your three most edited objects and list every flow, trigger and callout that appears.
- Read the last ten merge commits and their pull request descriptions, noting which approvals came from a different role than the author.
- Diff a fresh production retrieve against main and write down every unexplained file.
- Mark the automations nobody can explain, and propose deleting the dead ones through a pull request.
None of this needs new tooling. The PR-gated Salesforce change workflow you inherited already stores its own evidence, and the job is reading it before the next change merges.
Sources
- Salto pricing — Salto, 2026-09-29
- Hutte homepage — Hutte, 2026-09-29
- Gearset homepage — Gearset, 2026-10-15