Skip to content
mergecat

The change audit report lists every change of a range (one release, two environments, or what the next deployment would bring) with who wrote it, who integrated it, whether it went through a pull request and who approved it, its risk factors and the environments that run it. Use it as evidence for release reviews, change-management audits and incident investigations.

Evidence for change management

The report documents facts from Git and from your hosting service; it does not judge them. Changes without a pull request, without approval or with high risk are counted and listed so that a reviewer can look at them. How you act on them is part of your change and release policy.

What the report contains

FieldContent
TitleFor example Change audit: v1.1.0 → v1.2.0 or Change audit: staging not yet in production
Repositoryowner/name on the hosting service (or the folder name) and the remote URL
BranchThe analysed branch or commit, the base it is compared with, and the tip commit
PeriodIntegration date of the oldest and of the newest change
Pull request dataWhether approvals come from the hosting service, or are unknown
EnvironmentsThe environments checked for each change
GeneratedDate and time, and the app that produced the report
FingerprintSHA-256 of the reported facts (see Fingerprint)

Summary

Changes, via pull request, without pull request, direct commits, approved, not approved, review unknown, high risk, reverts and authors. The JSON format also has medium risk, integrators and the first and last integration dates.

Needs attention

The HTML report lists first the changes that are high risk, not approved or without a pull request, then all changes.

Each change

FieldContent
DateWhen the change entered the branch (integration date)
ChangeTitle, pull request number and link, merged branch, head commit
Linked issuesIssues linked to the pull request (with a connection)
CommitsEvery commit of the change: SHA, subject, author, date
SizeFiles changed, lines added and removed
IntegratorWho merged or committed the change into the branch
ReviewReview state and the people who approved
RiskLevel (low, medium, high) and the factors behind it
EnvironmentsThe environments that already run the change

Review states

StateMeaning
ApprovedThe pull request has at least one approval on the hosting service
Not approvedThe pull request was merged without an approval
Unknown (not connected)The change went through a pull request, but approvals could not be read because the hosting service is not connected
No pull requestA direct commit or a local merge: no review is recorded

Approvals need a connection

Who approved a pull request is stored by GitHub, GitLab or Azure DevOps, not by Git. Connect the hosting service before you export (see Connections); otherwise approvals are reported as “unknown” and the report says so in its header. The command line never connects to a hosting service, so its reports always show approvals as unknown.

Risk factors

Every change gets a score from what it changed and how it entered the branch. A score of 5 or more is high, 2 to 4 is medium, below 2 is low. The level is a hint for reviewers, not a verdict.

FactorPointsWhen
Very large change31,500 lines changed or more
Large change2500 lines changed or more
Many files130 files or more
Mostly deletions1300 lines removed or more, and more than twice the lines added
Database schema or migrations3Files such as **/migrations/**, **/*.sql, **/db/migrate/**, Flyway, Liquibase
Build or deployment pipeline2.github/workflows/**, azure-pipelines*.yml, .gitlab-ci.yml, Jenkinsfile, bitbucket-pipelines.yml, Fastfile
Configuration2appsettings*.json, *.config, .env*, application*.yml, application*.properties, *.ini
Authentication, permissions or certificates2**/auth/**, **/security/**, *.pem, *.pfx, *.key, *.p12 and similar
Infrastructure2Dockerfile*, docker-compose*.yml, *.tf, *.bicep, **/k8s/**, **/helm/**
Dependencies1package.json, lock files, *.csproj, pom.xml, build.gradle*, requirements*.txt, go.mod, Cargo.toml and similar
No tests changed2Code files changed without any test file
Committed directly to the branch2Direct commit without a pull request
Merged without a pull request1Local merge without a pull request
Merged with changes requested2The pull request was merged while changes were requested (with a connection)
Merged without approval2The pull request has no approval (with a connection)
Unclear integration path1The branch was merged into something else here (“inverted” merge)
Many authors1More than three authors
Reverts an earlier change1The subject starts with “Revert”

In VS Code you can replace the sensitive areas and the test file patterns with your own conventions: mergecat.risk.sensitiveAreas and mergecat.risk.testPatterns (see VS Code settings).

Fingerprint

The report carries a SHA-256 fingerprint of the facts it reports: the branch, the base, the tip commit and, for each change, its head commit, its commits, the review state, the approvers, the risk level and the environments. The generation time is not part of it.

  • Regenerating the report on the same history with the same data (approvals, environments, risk rules) gives the same fingerprint. Any change in these facts gives a different one.
  • The HTML report shows it in the footer, the Markdown report in the header and the JSON report in the fingerprint field. The CSV format has no fingerprint.
  • The fingerprint is a checksum, not a digital signature: anyone with the same data can compute it. To detect later changes to a report, store the fingerprint separately, for example in the release ticket or the change record.

Formats

FormatBest forContent
HTMLReading, printing, PDFHeader, summary cards, “needs attention”, all changes with risk factors and commits, fingerprint in the footer. Open it in a browser and print it to PDF (the print layout is A4 landscape).
MarkdownWikis, pull requests, ticketsHeader with fingerprint, summary table, one row per change
CSVSpreadsheetsOne row per change with the columns integration_date, entry_type, head_sha, title, branch, pr_number, pr_url, integrator, authors, commits, review, approved_by, linked_issues, risk, risk_factors, files, lines_added, lines_removed, environments. Cells that start with =, +, - or @ get a leading apostrophe so that spreadsheets do not run them as formulas.
JSONOther tools, archivesEverything: header, summary, every change with its commits, statistics, risk factors and environments, and the fingerprint

Produce a report

What the next deployment would bring. On the Deployments page Needs a connection, choose the environment under Live in (for example production) and what to Compare with (another environment, or the main branch). Then open Export audit report… and choose the format. The report covers exactly the changes listed on the page.

Deployments page with Compare environments: production compared with staging, and the Export audit report button

Compare environments: deploying staging to production brings three changesets. Export audit report… documents exactly these.

Any range. Open the Audit report dialog from the Audit button in the toolbar of the History page, from the Export menu (Audit report…), or from File › Audit Report…. Choose which changes:

  • Current view: the branch, base and filters of the History page;
  • Between two releases: what entered after the first tag, branch or commit, up to the second;
  • Between two environments: what deploying one environment (or the default branch) onto another would bring Needs a connection;
  • Not yet in an environment: what the next deployment of the current branch would bring Needs a connection.

Pick HTML, Markdown, CSV or JSON and click Export…. The save dialog suggests your Documents folder. A notification summarises the report (changes, without pull request, high risk, not approved) and offers to open it.

Audit report dialog with Between two releases selected, v1.1.0 to v1.2.0, format HTML, and a notification Audit report saved

The Audit report dialog: two releases, HTML. The notification summarises the saved report.

When the repository’s hosting service is not connected, the dialog explains that approvals will be reported as “unknown” and offers Connect or Continue without.

Audit report dialog of a local-only repository, with a note that approvals are unknown without a GitHub connection and the buttons Connect GitHub and Continue without

Without a connection: connect first, or continue with approvals reported as unknown.

The desktop app does not fill the Environments column of the report; VS Code and the command line do.

A routine for releases

  1. Before deploying, open Compare environments and review what the deployment will bring.
  2. Export the report as HTML for people and JSON for the archive, with the hosting service connected.
  3. Look at the “needs attention” section: changes without a pull request, not approved or high risk.
  4. Store both files with the release documentation and write the fingerprint into the release or change ticket.