Merge Scans

What it does #

A merge scan runs on the commits of a single push. It looks only at the files those commits changed, reports the issues in them, and marks each one as introduced by the push or pre-existing. Then it records one row per changed file — the content, the author, the lines — so Norma knows exactly what reached your branch and whether it had seen that content before.

That last part is what makes Analytics work. Before this, a file was only known to have reached your branch after the next scan. Now it’s known minutes after the push, which means Verified fixed on the Merge scans tab is a near-live number rather than a weekly one.

When it runs #

Automatically, on every push to the imported branch of an imported repository — the branch you chose when you imported it. Pushes to any other branch start nothing.

It works on GitHub and Bitbucket alike. On GitHub the Norma GitHub App subscribes to the push event; on Bitbucket the integration subscribes to repo:push.

There is nothing to switch on. If your repository is imported, its pushes are scanned.

What it is not #

Merge scans are quiet. They post no comment, create no check and appear nowhere on a pull request — they exist to record what reached your branch.

That makes them a different thing from pull request checks, which still work exactly as before: open a pull request against the default branch and Norma comments with the issues your changes introduce. The two don’t overlap:

Pull request check Merge scan
Triggered by Opening or updating a pull request Any push to the imported branch
Providers GitHub GitHub and Bitbucket
You see it As a comment on the pull request On the Analytics Merge scans tab
Feeds Analytics No Yes
Uses scan quota No No

A pull request isn’t code on your branch until it’s merged, which is why its check stays out of the Analytics numbers.

How it behaves #

  • Rapid pushes are merged into one scan. If you push again while a merge scan of that repository is still running, the ranges are combined and one scan runs after the current one. Your numbers don’t depend on how many scans happened to run.
  • A force push still works. When the previous head no longer exists, Norma scans from the last commit it recorded. Rows for rewritten commits stay — those commits were on the branch at the time, and the record says so.
  • A missed push is caught by the next scan. If a push event never arrives, the scan records the files for the range it covers, so coverage self-heals. Those issues stay Not merged until a merge scan actually covers the file.
  • A failed merge scan still records coverage. The file rows are written from the pushed commits, so “checked before merge” stays correct; only the issue columns wait, showing “—” until a scan completes.

Limits & notes #

  • No scan quota. Merge scans never consume your organisation’s scan allowance, however often you push.
  • Imported branch only. A push to a feature branch, a release branch or anything else triggers nothing. If you want standing results on another branch, import it — see Scanning multiple branches.
  • Nothing is posted to your provider. No comment, no status, no check run.
  • Generated files are excluded — lockfiles, build output and binaries don’t count on either side of the comparison.
  • Repositories imported before this release are registered for push events automatically. Until that registration completes, a Bitbucket repository shows No merge scan yet on the Analytics repository rows.
  • Norma keeps no copy of your code beyond the scan itself, exactly as with a scan.

Related #

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!