-
Notifications
You must be signed in to change notification settings - Fork 0
๐ฟ Git Workflow
Divyansh Bhardwaj edited this page Oct 8, 2025
·
1 revision
<type>/<description>
Types:
- feature/ : New features
- bugfix/ : Bug fixes
- hotfix/ : Urgent production fixes
- refactor/ : Code refactoring
- docs/ : Documentation updates
- test/ : Adding/updating tests
- chore/ : Maintenance tasks
Examples:
feature/note-editor
bugfix/search-not-working
refactor/storage-service
docs/update-readme
test/add-button-tests
Follow Conventional Commits:
<type>(<scope>): <subject>
<body>
<footer>
-
feat: New feature -
fix: Bug fix -
docs: Documentation changes -
style: Code style changes (formatting, no logic change) -
refactor: Code refactoring -
test: Adding or updating tests -
chore: Maintenance tasks
feat(auth): implement login functionality
- Add LoginForm component
- Add authentication service
- Add tests for login flow
Closes #123
---
fix(search): resolve case-sensitive search issue
The search was not working with uppercase letters.
Now it converts search query to lowercase.
Fixes #145
---
test(ui): add tests for Button component
- Test rendering with different variants
- Test click handlers
- Test disabled stategit checkout -b feature/note-editor# Write tests
npm run test:watch
# Implement feature
# Commit regularly
git add .
git commit -m "feat(notes): add rich text editor component"git push origin feature/note-editorUse the PR template below:
## Description
Brief description of what this PR does.
## Type of Change
- [ ] New feature
- [ ] Bug fix
- [ ] Refactoring
- [ ] Documentation update
- [ ] Test addition/update
## Changes Made
- Change 1
- Change 2
- Change 3
## Testing Done
- [ ] All tests pass
- [ ] Added new tests
- [ ] Manual testing completed
## Screenshots (if applicable)
Add screenshots here
## Related Issues
Closes #issue_number
## Checklist
- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Comments added for complex logic
- [ ] Documentation updated
- [ ] No console.log or debugging code
- [ ] All tests passingFor Reviewers:
- Check code quality and style
- Verify tests are comprehensive
- Test functionality locally
- Provide constructive feedback
- Approve when satisfied
For Authors:
- Address all comments
- Push fixes to same branch
- Re-request review
- Merge after approval
# After approval, use squash and merge
# This keeps main branch history clean- Code works as intended
- Edge cases handled
- Error handling present
- No hardcoded values
- Follows project conventions
- DRY principle followed
- Functions are small and focused
- Clear variable/function names
- No commented-out code
- Tests present and passing
- Tests cover main scenarios
- Tests follow TDD principles
- No skipped tests
- No unnecessary re-renders
- Efficient algorithms used
- No memory leaks
- Semantic HTML used
- ARIA labels present
- Keyboard navigation works
- Color contrast sufficient
- Complex logic documented
- README updated if needed
- Props/types documented