—Extend V19
V19 Code: your repositories, governed from commit to production.
V19 Code works with a Forgejo or Gitea server you run. The server stores the code; V19 is where your team browses it, reviews and merges pull requests, tracks issues and follows Actions runs, with one approval rule and one audit trail from commit to production.
GitHub stays fully supported
01
Connect your server
An owner or admin opens Cockpit → Integrations → V19 Code (Forgejo), enters the server's address and an access token (read access to repositories, plus write access if you want the merge check) and chooses Connect server. The token is checked, stored encrypted and never reaches the browser. V19 Code covers the repositories registered in your workspace. Standby copies on the same page shows each pull mirror of a GitHub repository as Up to date, Behind or Stale.
Then open Cockpit → Code.
02
Needs attention
The Code home starts with every open pull request across your registered repositories, each in one group with a one-line reason: Ready to merge, Checks failing, Needs approval in V19, Blocked by rules, Going stale (7 days or more without activity), Waiting for checks and Drafts. A repository the server didn't answer for is named, not silently dropped. Below it are the repositories themselves and a Board across repositories.
03
Browse and edit code
- Each repository has a branch picker, folders and files with the last commit that touched each one, the README, a language bar and recent commits.
- Press t for Go to file, and / to search.
- A file shows with syntax highlighting, line links and Blame, which keeps each line's real author through up to 5 renames.
- Edit, Add file, rename and Delete work in the browser. Choose Commit straight to the branch (not on protected branches, and only for roles that can apply changes) or Open a pull request. A commit whose added lines look like a secret is refused before it is made, and V19 names the line.
- Deploy this branch with V19 Hosting opens the hosting form for that repository and branch. See V19 Hosting.
04
Pull requests
Open a pull request from V19 on the compare page: it shows the commits, a risk check across every commit (a secret pushed in any commit is Critical, with a reminder to rotate it) and what merging into the target will need from your deploy rules, before the pull request exists.
On a pull request, Conversation has the description, reviews and comments, the live merge checklist (review, code owners, change ticket, tests) and Merge (merge commit, squash or rebase). The side panel has a risk card that explains itself per file, an AI review summary you ask for (secrets are removed before anything is sent), approval in V19 with a written reason, and checks. Files changed has unified or split diffs, a Viewed mark per file, and line comments:
- Hover a line and press + to comment. Comments on a line form a conversation you can reply to, resolve or reopen.
- Suggest a change proposes new text for one line or a range of up to 100 lines. The author applies it with Apply suggestion, or several at once with Apply suggestions together in one commit. A suggestion can only be applied while the lines it was written against are unchanged.
- Comments, suggestions and merges done in V19 are signed with the person's name and recorded in the audit log.
05
Governed merges
V19 posts v19/merge-check on the newest commit of every open pull request on the server. Make it a required status in the server's branch protection, and a pull request can't merge into a branch that deploys to a governed environment until your deploy rules pass. One definition governs both merge and deploy.
- An approval counts only on the exact newest commit, from someone other than the author. Dismissed or outdated approvals never count, and a later "request changes" blocks.
- An approval doesn't count from anyone who wrote or committed a commit in the pull request, whether given as a review, a code-owner approval or in V19. The checklist names whose approval didn't count. If V19 can't read every commit (more than 250, or a failed read), the merge is blocked rather than guessed.
- Merge in V19 checks again first, requires the commit the reviewer saw and refuses conflicts. The server's own branch protection still applies.
06
A signed change record for every pull request
Change record on a pull request downloads one file with its commits, every review and whether it was on the newest commit, the merge check and its reasons, code owners per file, risk flags, checks, approvals given in V19 and every V19 action on it. A Separation of duties section says who wrote the change, whose approvals counted, whose didn't and why, and who merged it.
Signed copy adds an Ed25519 signature. The public key is published at /api/trust/change-record-key, so an auditor can check a record offline, without V19. Each download is recorded in the audit log with the file's SHA-256 digest.
07
Issues and boards
Issues have labels, assignees, milestones, filters and search. New issues offer the repository's issue templates, including issue forms. Each repository has a Board (To do, In progress, In review and Done); drag a card or use its Move to menu, which works with the keyboard and screen readers. The column is stored on the issue itself as a status/… label, and Done closes it, so the board reads the same on the server and in other tools. Board across repositories shows every registered repository's issues on one board.
08
Actions
The Actions tab lists runs newest first, with filters by result, workflow and branch. A run page opens its first failed job, with the log split into steps, errors and warnings listed at the top with links to their lines, search and Raw log. Owners and admins can Run workflow on a workflow that allows it, on an existing branch with inputs; each start is in the audit log. Jobs and logs need Gitea 1.25 or Forgejo 16 or later. Re-run and cancel stay on the server for now.
09
Move a repository from GitHub
Owners and admins can copy a GitHub repository that V19 knows into V19 Code from Cockpit → Integrations → V19 Code. Pick the repository, then:
- Check readiness shows whether your server is connected, whether the name is free, the repository's size, what will be copied, which CI jobs need GitHub's macOS or Windows machines (those keep running on GitHub), its deploy rules and its secrets.
- Rehearse copies history, every branch and tag, issues, pull requests, labels, milestones, releases and the wiki under a name ending in
-rehearsal-and the date. V19 then checks that every GitHub branch and tag is on the copy at the same commit. Nothing on GitHub changes. - Move does the same under the repository's own name, and only if the copy matches. It protects the default branch (no direct pushes,
v19/merge-checkrequired), gives the copy the same deploy rules, and adds a push mirror so GitHub stays as a backup.
Each step is in the audit log. In workspaces enrolled in Governance, V19 refuses both rehearsals and moves; readiness checks still work. Run a rehearsal first and check the copy before you move anything.
10
Search and insights
Code search covers every registered repository's default branch, plus pull requests and issues. Use words, "exact phrase", /regex/, repo:, path:, lang: and case:yes. Very large repositories are searched up to their first 20,000 files, and any repository that couldn't be read fully is named on the page.
Insights per repository shows merges per week, the median and 90th-percentile time to merge, time to first review by someone other than the author, the share of merged pull requests that had a review, change sizes, open pull requests by age and top authors.