What docs-as-code setup handles documentation reviews, approvals and audit history in regulated environments?
Short answer
Keep the docs in Git so every change has history, require a recorded human approval before merge, and export a review record nobody can quietly edit. Git and GitHub give you the change history and merge rules. DraftView adds review by non-developers, an enforced sign-off check, and sealed audit exports.
What regulators and auditors usually ask for
Whatever the framework, the questions about a controlled document tend to be the same.
- Who changed it, and what exactly changed?
- Who reviewed it, in what role, and did they review the final version?
- Who approved it, and could they approve their own change?
- Can you show this history later, and prove it has not been edited?
What Git and GitHub already give you
Git records every change, its author and its time. Pull requests group a change with its discussion. Branch protection can require reviews and passing checks before merge, and signed commits tie changes to verified identities.
The gap is people. Legal, quality and subject matter experts rarely have GitHub accounts, and a GitHub approval does not show that anyone read the rendered document.
What DraftView adds
Reviewers sign in by email and read rendered pages, so experts without GitHub can comment and suggest edits. Roles decide who can comment, edit, and sign off.
A required draftview/human-review check keeps a documentation PR from merging until a maintainer signs off on that exact commit. Sign-offs are append-only and record the signer's role, the commit and the CI result.
For reviews of files already on a branch, a doc review pins the exact commit, logs every comment, edit and decision with before and after text, and commits a Markdown review record into your repository when it finishes.
Evidence you can hand over
On the Governance plan, maintainers export a sealed JSON record per review and an org-wide ledger of every PR and doc review in a period. Anyone can check a file under Oversight, then Verify a record, and a changed file fails.
The oversight report shows the share of reviews with real activity before sign-off, and flags edits that were approved by their own author.
What to know before you rely on this
- No tool makes you compliant on its own. Map these records to your own controls with your quality or compliance team.
- Sealed JSON exports, the ledger and the oversight report need the Governance plan. The Markdown review record and sign-off history are on every plan.
- DraftView reviews documentation in GitHub repositories. GitLab support today covers editing files, not the review queue.
Common questions
- Does this replace a document control system?
- For documentation that already lives in Git, it can cover review, approval and history. If your process needs controlled PDFs or training sign-off, keep the system that does that and link to the merged version.
- Can someone approve their own edit?
- They can, but it is recorded. The oversight report and audit export flag accepted edits whose decider was also the author, and a Governance org can be alerted when it happens.
- Where is the history kept if we stop using DraftView?
- Git keeps the changes. Doc reviews also commit a Markdown review record into the repository, so that part of the history stays with your docs.
Keep reading
Last updated 2026-10-28