This document outlines the manual steps required after this pull request merges to complete the Gitflow branching infrastructure setup.
After this PR is merged to main, create the develop branch:
git checkout main
git pull origin main
git checkout -b develop
git push -u origin develop- Go to: https://github.com/Wootehfook/BoxdBuddies/settings
- Click on "Branches" in the left sidebar
- Under "Default branch", click the switch/edit icon next to
main - Select
developfrom the dropdown - Click "Update"
- Confirm the change
Why? This ensures that:
- New PRs default to targeting
developinstead ofmain - GitHub Copilot and AI coding agents automatically use
developas the base - Contributors naturally follow the Gitflow workflow
The feature branch ruleset has been updated to include all Conventional Commit branch prefixes. You'll need to re-import it:
- Go to: https://github.com/Wootehfook/BoxdBuddies/settings/rules
- Find the existing "Development Flexibility (Feature Branches)" ruleset
- Delete or disable the old one
- Click "New ruleset" → "Import a ruleset"
- Upload
github-rulesets/feature-branch-ruleset.json - Review and activate
The new ruleset now covers: feature/*, fix/*, chore/*, docs/*, refactor/*, perf/*, test/*, copilot/*, changelog/*
Individual developers can optionally install pre-push hooks to prevent accidental direct pushes to protected branches:
bash scripts/setup-git-hooks.shThis installs a pre-push hook that blocks pushes to main or develop and reminds developers to use feature branches.
✅ PR Auto-retarget Workflow - Automatically redirects PRs from main to develop
✅ Updated Branch Rulesets - Expanded to cover all Conventional Commit branch types
✅ VSCode Configuration - Git settings, extensions, and editor config
✅ CODEOWNERS - GitHub Copilot AI Code Review assigned as default reviewer
✅ Updated Documentation - Copilot instructions, chatmode, and README with workflow guidance
✅ Dependabot Configuration - All dependency PRs target develop
- .vscode/settings.json - Git autofetch, formatting, TypeScript settings
- .vscode/extensions.json - Recommended extensions (Copilot, Prettier, ESLint, GitLens, Git Graph)
- .github/chatmodes/Custom.chatmode.md - Development-focused Copilot chat mode
- scripts/setup-git-hooks.sh - Optional local hook installer
After completing the manual steps above, the branching workflow will function as follows:
feature/*, fix/*, chore/*, etc. ──PR──▶ develop ──PR──▶ main
│
release/* / hotfix/* ──PR──▶ main
- Day-to-day development → targets
develop - Release branches → target
main - Hotfix branches → target
main - PR auto-retarget → catches and redirects any main-targeted PRs to develop
After completing the manual steps:
- ✅ Verify
developis the default branch in GitHub settings - ✅ Create a test feature branch and confirm it defaults to targeting
develop - ✅ Verify the updated feature branch ruleset is active
- ✅ Check that Dependabot PRs target
develop
If you encounter any problems during setup, please:
- Check the workflow documentation in
.github/copilot-instructions.mdsection 9b - Review the README.md "Git Workflow" section
- Open an issue with the
workflowlabel
Note: This PR targets main because develop doesn't exist yet. All future PRs (except releases and hotfixes) should target develop.