Thank you for your interest in contributing to this project. To maintain a clean and understandable workflow, we ask that you follow these guidelines when making commits to this repository.
- Clear Commit Messages:
-
Use English/Spanish for commit messages.
-
The message should be brief and descriptive.
-
Use the present tense in commit messages.
Recommended format: [Type]: Brief description
Examples:
fix: correct typo in function name
feat: add new endpoint for user registration
docs: update README with new instructions
- Commit Types:
feat
: New featurefix
: Bug fixtranslate
: New translationsdocs
: Documentation changesstyle
: Changes that do not affect the logic of the code (whitespace, formatting, etc.)refactor
: Code changes that neither fix bugs nor add featurestest
: Adding or modifying testschore
: Updating build tasks, package manager configs, etc.
- Atomic Commits:
- Ensure each commit makes a single logical change.
- If you are making multiple changes, make one commit per change.
- Referencing Issues:
- If your commit fixes an issue, include a reference to the issue in the commit message.
- Use
Fixes #<issue_number>
to automatically close the issue when the commit is merged.
Example: fix: handle null pointer exception
This commit fixes a null pointer exception that occurs when ... Fixes #42
- Code Reviews:
- Ensure your code passes existing tests.
- Review the code for common errors before committing.
- Fork and Clone:
- Fork the repository.
- Clone your fork to your local machine.
git clone https://github.com/rafacv23/F1-api.git
cd F1-api
- Create a Branch Create a new branch for your work
git checkout -b your-branch-name
- Make Commits
- Follow the commit guidelins mentioned above
- Make frequent and clear commits
- Push to Your Fork: Push your changes to your fork on Github
git push origin your-branch-name
- Create a Pull Request
- Open a Pull Request from your branch in your fork to the main repository.
- Provide a detailed description of the changes you made and why.
- Your Pull Request will be reviewed by one or more project maintainers.
- You may be asked to make changes before your Pull Request is accepted.
- Once your Pull Request is approved, it will be merged into the main repository.
Thank you for following these guidelines and for contributing to our project.