The Balsamoa team follows the Feature Branch Workflow: every piece of work — whether a new endpoint, a bug fix, or a documentation update — lives on its own short-lived branch and is integrated intoDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/MateoNavarroMN/Balsamoa-Backend/llms.txt
Use this file to discover all available pages before exploring further.
main through a Pull Request. This keeps the codebase stable, makes code review straightforward, and ensures there is always a clean history of what changed and why.
The
main branch is always production-ready. Never commit directly to main.Branch naming
Use a consistent prefix so it is immediately obvious what kind of work a branch contains:| Prefix | When to use | Example |
|---|---|---|
feature/ | Adding new functionality | feature/endpoint-colores |
fix/ | Correcting a bug or broken behaviour | fix/error-subida-imagen |
Full workflow
Sync main
Before starting any new task, make sure your local
main branch is up to date with the remote. This prevents unnecessary merge conflicts later.Create a feature branch
Branch off from the freshly updated For example, if you are adding the colour-filter endpoint:
main. Use the naming convention described above.Develop and commit
Work on your task and save your progress with frequent, focused commits. Each commit should represent one logical change — avoid combining unrelated edits in a single commit.Follow the commit message format described below for consistency across the team.
Push the branch to GitHub
Publish your branch to the remote repository so your teammates can see it and so the Pull Request can be opened.If this is your first push for this branch, Git may ask you to set the upstream — running the command above handles that automatically.
Open a Pull Request
- Go to the repository on GitHub.
- GitHub will usually show a banner offering to open a Pull Request for your recently pushed branch — click “Compare & pull request”. If the banner is not visible, go to the Pull requests tab and click New pull request.
- Write a clear title and a brief description of what the PR does and why.
- Assign a reviewer from the team so someone is responsible for checking the code.
- Move your Kanban card to the “En Revisión” column.
Review, approve, and merge
The assigned reviewer reads through the changes, leaves comments if anything needs to be adjusted, and approves the PR once they are satisfied. After approval:
- Click Merge pull request on GitHub (use the default merge or squash merge — agree on this as a team).
- Move the Kanban card to the “Finalizado” column.
- Delete your local branch — it has served its purpose:
Commit message format
Write short, clear, and descriptive commit messages. The project uses a simpletype: description format:
| Prefix | Purpose | Example for this project |
|---|---|---|
feat: | A new feature or endpoint | feat: agregar ruta GET /api/v1/tienda/colores |
fix: | A bug fix | fix: corregir query de productos inactivos |
Resolving merge conflicts
Merge conflicts happen when two branches modify the same lines in the same file. They are a normal part of collaborative development — not a sign that something went wrong. How to resolve them:- Don’t panic. Git will list the conflicting files in the terminal output. No data has been lost.
- Open the conflicting file(s) in VS Code. The editor highlights the conflicting sections with clear markers:
- Read both versions and decide which one to keep (or combine them if both changes are needed). Delete the conflict markers (
<<<<<<<,=======,>>>>>>>) once you have made your choice. - Save the file, then stage and commit the resolution: