Before submitting a pull request, please ensure you follow these important guidelines:
- Ensure you have a GitHub issue for your changes (except for trivial typo fixes)
- Check existing issues to avoid duplicates
- Wait for issue assessment and confirmation before starting work
- Assign the issue to yourself when you start working to prevent duplicate efforts
- Branch name should reference issue number (e.g., issue-123)
- Create new branches from updated develop:
git checkout develop git checkout -b issue-123
- PR title must include issue number (e.g., "issue-123: Improve error handling")
- Include issue link in PR description
- Title should clearly summarize the changes
- Always create PRs against the develop branch unless specified otherwise
- Reviewers will handle backporting to other branches if needed
- Pull latest changes before submitting PR:
git pull --rebase upstream develop
- Run this daily when working on longer tickets
-
After making UI changes to the frontend directory , run the formatter to properly format the Frontend code
cd frontend npm run format -
After making changes to the backend directory, run the formatter to properly format the Java code
mvn spotless:apply
- Follow project coding conventions
- Configure IDE according to project guidelines
- Review your diff carefully before committing
- Keep changes focused and related to the issue at hand
- Avoid mixing unrelated changes in a single PR
- Example of what NOT to do:
// Bad: Single PR with unrelated changes - Refactor utils class - Improve UI responsiveness in multiple components - Fix typos in documentation - Instead, split into separate PRs:
// Good: Separate PRs for each concern PR #1: "Issue-123: Refactor utils class" PR #2: "Issue-124: Improve UI component responsiveness" PR #3: "Issue-125: Fix documentation typos" - Consider squashing commits for bug fixes and small features
- Don't worry about squashing review-related commits
- Final squash will be handled during merge
- Use meaningful PR descriptions
- Include issue number and purpose
- When in doubt, use the issue summary
- Request review from appropriate team members
- Add PR URL as comment on the issue
- Address review comments promptly
- Attach screenshots to PR description or comments
- Include before/after images for visual changes
- For web apps, include preview links if possible
- Maintain one PR per issue
- Push new commits to same branch to update PR
- Only create new PR if original cannot be modified
- Close old PR with explanation if creating new one
- Reference new PR in closing comment
- Unassign yourself from issue if stopping work
- Document useful findings in issue comments
- Close any open PRs with explanation
- Check GitHub Actions build status
- Investigate failures using "Details" link
- Run
mvn clean installlocally before pushing
Remember to review the "Using Git" documentation, particularly the "Submit the code" section, before creating pull requests.