Pull Requests Guidelines
Here you can find some important topics to make your pull request more effective.
Clear Commit Messages
While you understand your code and the reasons for your changes, the reviewer may not. Commit messages should clearly communicate the purpose and context of the changes.
A great way to ensure clarity and consistency is by following the Conventional Commits Specification, which uses the following format:
<type>[optional-scope]: <description>
feat(shop-api): add voucher validation
This approach makes commit history easier to read and maintain, while also providing valuable context for future reference.
Crafting Meaningful Pull Requests
A pull request is more than just a submission of code — it is an opportunity to provide context, clarify your intentions, and ensure that the changes you introduce align with the goals of the project. While commit messages are crucial for individual changes, the pull request as a whole should offer a clear and cohesive explanation of the work being done.
In the spirit of maintaining clarity and consistency within the WinnetouJs documentation, we encourage the use of a standardized template for all pull requests. This helps both contributors and reviewers focus on what matters most: the substance of the changes and the intent behind them. A well-crafted pull request should include:
- Commit Type: A concise indication of the nature of your change (e.g., new feature, bug fix, or breaking change).
- Ticket/Issue Reference: If applicable, link to any relevant issues, tickets, or discussions related to the PR.
- What and Why: A brief description of what the PR accomplishes and the reasoning behind the changes, so reviewers can quickly understand the context and impact.
Adopting this approach streamlines the review process, making it easier for others to follow your work and collaborate effectively.
Conclusion
Following clear and consistent guidelines for pull requests ensures smooth collaboration and a streamlined review process. By providing concise, descriptive commit messages and well-organized PRs, you help maintain clarity within the WinnetouJs project.
Adopting these practices will not only make your contributions easier to review, but also create a valuable and maintainable codebase that fosters collaboration. Always remember that communication is key — a well-crafted pull request tells the story of your changes, making it easier for others to understand, contribute, and provide meaningful feedback.
Together, we can ensure that each contribution aligns with the vision of the project, improving the overall quality and coherence of WinnetouJs.