Pull Requests Guidelines
Pull Request (PR) Guidelines
Thank you for your contribution to our project! Pull requests help us collaborate effectively and maintain code quality. Please follow these guidelines to ensure your PRs are reviewed and merged efficiently.
1. Branch Naming:
- Use descriptive branch names that convey the purpose of the changes (e.g.,
feature/new-login-page,bugfix/issue-123). - Avoid using vague names like
fix,update, orchanges.
2. Scope of Changes:
- Clearly describe the purpose of your changes in the PR title and description.
- Break down larger features or bug fixes into smaller, manageable PRs.
- Reference relevant issues in your PR description using keywords like "Closes #issue-number."
3. Code Quality:
- Follow our coding conventions and style guide.
- Ensure your code is well-documented and includes inline comments when necessary.
- Run linting and formatting tools before creating the PR.
4. Testing:
- Write unit tests and, if applicable, integration or end-to-end tests to cover your changes.
- Ensure all existing tests are passing.
5. Review Requests:
- Request reviews from relevant team members.
- If your changes affect specific components or areas, consider mentioning those team members directly using
@username.
6. PR Description:
- Provide a clear and concise description of the changes you made.
- Explain the problem you're addressing and how your solution works.
- List any dependencies or side effects that reviewers should be aware of.
7. Review Process:
- Be responsive during the review process and address comments promptly.
- Engage in constructive discussions and consider feedback from reviewers.
- Use the "Request changes" or "Approve" feature in the PR to indicate your status.
8. Merging:
- Once the PR has been approved, wait for any required checks (e.g., continuous integration) to pass before merging.
- Avoid merging your own PR unless explicitly allowed by your team's workflow.
9. Clean Up:
- Delete branches associated with merged PRs to keep the repository clean.
10. Documentation Updates:
- If your changes impact user-facing features, update relevant documentation (user guides, API documentation, etc.).
11. Communication:
- Communicate any potential delays, challenges, or concerns regarding your PR.
- Use comments or the PR discussion to provide context or additional information.
Thank you for your commitment to maintaining code quality and fostering a collaborative environment. Your efforts help us deliver a reliable and well-structured application.
Happy coding!