Hygiene and workflow
Workflow health
6 min read
With a workflow chosen, Versora checks the repository's
branches against its rules and warns you when something is out of place: a branch with a name
outside the pattern, a hotfix that started from develop instead of main, a merge request
pointing to the wrong target, a release open for weeks, a fix that went into production and didn't
come back to main, an environment that fell behind. Each warning comes with the action that
fixes it.
The check runs on its own when the refs or the list of merge requests change, and costs only a few git commands, almost all of them in parallel.
- WORKFLOW section: the counter in the header ("2 workflow warnings. Click to see them.").
- LOCAL section: a badge on the branch's row; the tooltip lists the warnings ("2 workflow warnings:").
- Branch menu: Workflow health: 2 warnings….
- Branches review: the Signals column (see Branches review).
- Merge request form: when the chosen target isn't the workflow's, a note says "In the GitLab flow workflow, feature/login goes into main." with the Use main button.
- WORKFLOW section: the header's counter, or right-click the header › Workflow health….
- Branch menu: Workflow health: N warnings… (opens only that branch's warnings).
- Palette (Ctrl+P): "Workflow: branch health". It's unavailable with the reason "Choose a workflow first" when the repository has no workflow.
- Open the panel. It shows "Checking the branches…" and then the list.
- Read each warning: the title, what happened and the suggestion.
- Click the warning's action button to fix it (table below), or ignore the warning if the situation is intentional.
- Use Check again after changes made outside Versora.
- Check Include work branches that only exist on the remote to also check colleagues' branches you don't have locally.
- When opened for a single branch, the panel shows Show all branches to widen the list.
With no warnings, the panel says "All good in the GitLab flow workflow." (or "No warnings for feature/login." when opened for a branch).
| Warning | When it appears | Action offered |
|---|---|---|
| Outside the workflow | "The name feature-login doesn't follow any type of the workflow (feature/, fix/)." Suggestion: "Rename it with the prefix of its work type, or ignore it if it's a personal branch." | Rename… |
| Wrong origin | "hotfix/1.2.1 carries 3 commits from develop that aren't in main: it should have started from main." | Move onto main… |
| Started from another branch | "feature/b carries the commits of feature/a: it started from it instead of main." Suggestion: "If that's on purpose, declare the stack (Branch stack in the branch menu); otherwise, move the branch onto main." | Move onto main… |
| Merged in the wrong place | "feature/x went into staging, but the workflow target is main." | Finish… |
| Wrong target | "The !42 of feature/x goes into develop; the workflow says main." | Change target to main… |
| Forgotten release / Forgotten hotfix | "release/1.1 has been open since 10/01/2026, more than 14 days." | Finish… (except on the maintained release of release branches) |
| Already finished | "release/1.0 already went into main and back into the workflow; the branch is still open." | Delete the branch… |
| Unreleased | "release/1.2 has 5 unreleased commits since 11/03/2026." Suggestion: "Release a version of it (New version…) or bring the fixes to another release." | New version… |
| Didn't go back | "2 commits from hotfix/1.2.1 haven't reached main: the fix disappears in the next version." | Bring into main… |
| Environment behind | "production has been 6 commits behind staging since 11/10/2026." | Promote staging to production… |
| Long-lived branch | (trunk-based) "feature/x has commits since 11/01/2026; in trunk-based, a branch lasts up to 3 days." | Finish… |
| Too many active branches | (trunk-based) "5 active work branches; trunk-based recommends up to 3." Suggestion: "Finish or drop the stalled branches before opening others." | — |
The day limits (forgotten release, environment behind, long-lived branch) are under Health warnings, in the workflow configuration. See Workflow.
The Move onto main… action of the "Wrong origin" and "Started from another branch" warnings rebuilds the branch on the right base, taking only its own commits.
- Click Move onto main….
- The "Move hotfix/1.2.1 onto main?" window explains and lists what leaves: "hotfix/1.2.1 started from develop instead of main. Only its 2 commits stay, on top of main (rebase --onto); the commits that came from develop leave the branch:".
- If there are branches stacked on top of it, the window warns: "Branches stacked on top of it (…) stay behind until the stack is updated."
- Click Move.
git rebase --onto main <point-where-it-left-develop> hotfix/1.2.1
Ctrl+Z undoes it ("Rebase hotfix/1.2.1"). If the branch was already on the remote, the next push needs to be forced.
The Change target to main… action of the "Wrong target" warning changes the merge request's target on GitLab or GitHub.
- Click the action. The "Change the target of !42?" window explains: "The merge request !42 goes into develop; the workflow says main. The target is read again on the server first: if someone already changed it, nothing is changed."
- Click Change to main.
- The notice confirms "!42 now goes into main." or, if someone had already changed it, "!42 already points to main on the server: nothing was changed."
The change is made on the server and does not go into Ctrl+Z. To go back, change the target again on the server. Without the server registered with a token, the action opens the merge request form.
The Bring into main… action of the "Didn't go back" warning brings into the branch above the commits that went into production (or into a release) and didn't get there.
- Click Bring into main…. The "Bring from hotfix/1.2.1 into main" window lists the commits: "2 commits from hotfix/1.2.1 haven't reached main:" (up to 12, and "… and N more").
- Under How, choose one of the available options:
- Open merge request hotfix/1.2.1 → main (when going back is done by merge and there's a server);
- Create a branch from main with the fixes (cherry-pick) and open the merge request, with
the Branch name (for the new-branch option) field (suggestion:
fix/hotfix-1.2.1-to-main); - Bring the fixes straight into main (local cherry-pick), when the workflow goes back by cherry-pick (hotfix in release branches);
- Merge hotfix/1.2.1 into main locally, when going back is done by merge.
- Click Bring.
# local cherry-pick: only the missing commits, starting from the point the hotfix started from
git checkout main --
git cherry-pick -x --allow-empty <sha1> <sha2> # -x records "(cherry picked from commit …)"
# local merge
git checkout main -- && git merge --no-ff --no-edit hotfix/1.2.1
In the new-branch option, Versora creates the branch from main, does the cherry-picks on it and
opens the merge request form with the push. It's at most 100 commits at a time.
Ctrl+Z undoes the local bring-back ("Bring hotfix/1.2.1 into main"). The opened merge request stays on the server.
- "Everything in hotfix/1.2.1 is already in main.": there's nothing to bring.
- "There are 140 commits to bring back (the limit is 100). Do it in parts or with a merge."
- "Couldn't find where "hotfix/1.2.1" left "release/1.2".": Versora couldn't find the starting point to limit the cherry-pick.
- "Some comparison went past 20,000 commits and was skipped.": in huge histories, a group of branches went unchecked.
- "Checked in 120 ms.": the time of the last check.
- The day limits are in the workflow configuration (Preferences › Workflow › Configure…).
- The administrator can hide or lock the Workflow page (id
flows). See Policy keys.
- Repository workflow
- Fork point
- Branch stacks
- Rename a branch
- Official documentation: git rebase --onto (opens another site)