Branch Structure
Horse Trust uses a structured Git workflow to maintain code quality and enable smooth collaboration.Branch Types
main- Production branch, always stable and deployabledev- Development branch, integration branch for featuresfeature/*- New functionality branchesfix/*- Bug fix branches
Creating a New Branch
Step 1: Update Your Local Repository
Always start from an updateddev branch:
Step 2: Create Your Feature Branch
Use descriptive branch names that clearly indicate the purpose:feature/user-authenticationfeature/donation-trackingfix/login-redirect-errorfix/broken-api-endpoint
feature/updatefix/bugtest-branch
Making Changes
Development Best Practices
- Write clean, documented code - Make your code easy to understand
- Follow project conventions - Maintain consistency with existing code
- Add tests - Include tests for new functionality
- Test thoroughly - Ensure all tests pass before committing
Commit Conventions
We follow Conventional Commits specification for clear and structured commit history.Commit Format
Commit Types
-
feat- New feature -
fix- Bug fix -
docs- Documentation changes -
style- Code formatting (no functional changes) -
refactor- Code refactoring -
test- Adding or modifying tests -
chore- Maintenance tasks
Commit Examples
Good commits:Pushing Your Changes
Once you’ve committed your changes, push them to the remote repository:Creating a Pull Request
Step 1: Open a Pull Request
- Go to the GitHub repository
- Click “New Pull Request”
- Set the base branch to
dev - Set the compare branch to your feature/fix branch
Step 2: Fill Out the PR Template
Provide comprehensive information: Required information:- Description - Clear explanation of what changes you made and why
- Screenshots - Visual evidence of changes (if applicable)
- Checklist - Mark completed tasks:
- Code follows project standards
- All tests pass
- Documentation updated
- No breaking changes (or documented if necessary)
Step 3: Assign Reviewers
- Assign the repository maintainer as a reviewer
- Add relevant team members if needed
Step 4: Wait for Review
- Automated tests will run automatically
- The repository maintainer will review your code
- Be responsive to feedback and requested changes
Review Process
What to Expect
- Automated Checks - CI/CD pipeline runs tests automatically
- Code Review - Repository maintainer reviews your changes
- Feedback - You may be asked to make changes
- Approval - Once approved, the maintainer will merge to
dev
Review Checklist
Reviewers will check:- Code quality and readability
- Adherence to coding standards
- Test coverage
- Documentation completeness
- No security vulnerabilities
- Performance considerations
All tests must pass before a PR can be merged. Make sure to run tests locally before pushing.
After Your PR is Merged
Once your pull request is merged:- Delete your feature branch (GitHub will prompt you)
- Update your local repository:
- Start working on your next contribution!
Important Rules
Getting Help
If you have questions about the Git workflow:- Contact the repository maintainer
- Reach out to the team: S02-26-Equipo-33-Web-App
- Review this documentation

