Almost what you need

The qPCR protocol from T19-L02 · Work on a Shared Gitea Repository From Your Computer With OpenCode is now the one five people in the lab follow. Last week a change went straight in with a typo in a dilution, and two plates were wasted before anyone noticed. Everyone could push to main, so nobody read a change before it counted.

In this book you close main to direct pushes, so every change comes as a pull request: a proposal that a colleague reads line by line, comments on, and approves before it goes in. You record the problem as an issue and let the merge close it. You are at Level 3 Builder: colleagues depend on this repository, and a change that reaches main unread reaches all of them.

After this you can

  • Protect main so that nobody, including you, can push to it or merge without an approval.
  • Record a problem as an issue, and link the change that fixes it.
  • Make a change on a branch with OpenCode and open a pull request for it.
  • Review a pull request: comment on a line, request changes, approve.
  • Merge the pull request, and let the merge close the issue.

Before you start

  • Books: T19-L02 · Work on a Shared Gitea Repository From Your Computer With OpenCode. Your repository is on your computer, and a colleague has Write access. In the example you are Mia (the owner) and Jonas is the colleague who reviews; steps 3, 6, 7 and 9 happen on Jonas's screen.
  • Owner or Admin rights on the repository, to change its settings.
  • About 105 minutes: 15 to read, 90 to do, most of it waiting for and doing the review with your colleague.

Last verified 25 September 2026. Branch protection, pull requests, reviews and issues are built into every Gitea, free, including gitea.com. Details for experts at the end of this book.

The idea in one page

  • main is what everyone uses. Protect it: no direct pushes, and no merge without an approval.
  • A branch is a side copy for one change. You work there; main stays untouched.
  • A pull request asks to merge a branch into main: merging copies the branch's changes into main. Its page shows the change in red and green, the discussion, the reviews and whether it may be merged.