Branch Protection Checklist
Use this during bootstrap or repo adoption when you want agents to inherit the strict VibeGov Git workflow before implementation starts.
Branch roles
main: promotion/release branch. It accepts only explicit promotion pull requests fromdevelopand urgent hotfix pull requests branched frommain.develop: integration branch for normal work. Feature, fix, docs, and chore changes land here through pull request.- issue branches:
feature/<issue>-<slug>,fix/<issue>-<slug>,docs/<issue>-<slug>, orchore/<issue>-<slug>created fromdevelop. - hotfix branches:
hotfix/<issue>-<slug>created frommain. - agents never commit directly to
mainordevelop.
GitHub protection checklist for develop
-
developexists and is used as the pull-request target for normal work. - Require a pull request before merging.
- Require approvals according to team policy.
- Require the repo's validation/status checks before merge.
- Require conversation resolution before merge.
- Restrict direct pushes so agents cannot bypass pull requests.
- Disable force pushes and branch deletion unless a documented admin exception exists.
GitHub protection checklist for main
-
mainexists and is treated as the promotion/release branch. - Require a pull request before merging.
- Require approvals and release-readiness/status checks before merge.
- Restrict direct pushes so agents cannot bypass pull requests.
- Disable force pushes and branch deletion unless a documented admin exception exists.
- Treat merges into
mainas either explicit promotions fromdevelopor urgent hotfix pull requests frommain-based branches.
Promotion checklist
- The release scope is already integrated and verified on
develop. - The promotion pull request explicitly moves
developintomain. - The promotion pull request states what is being promoted and what evidence supports the move.
- Any unresolved risks or follow-up work are recorded before merge.
Hotfix checklist
- Start the hotfix from
main. - Use a
hotfix/<issue>-<slug>branch name that includes the governing issue ID. - Merge the hotfix back to
mainthrough a reviewed pull request. - Back-merge or otherwise reconcile the hotfix into
developimmediately after themainmerge. - Record the back-merge pull request or commit in the hotfix notes.
Bootstrap/adoption outputs
- A repo-local pull-request template exists (for GitHub repos,
.github/pull_request_template.md). - Bootstrap instructions tell agents that
mainanddevelopare protected integration/promotion surfaces, not working branches. - Quickstart/adoption docs explain issue-scoped branch naming and mandatory pull requests into
develop. - Contribution docs explain promotion and hotfix flows.
Practical note
GitHub branch protection can protect main and develop, but branch naming conventions for source branches may need rulesets, automation, or review discipline depending on the hosting plan and repository setup.