Thank you for your interest in contributing to Git-Smart! This guide will help you get started.
-
Fork and Clone
git clone https://github.com/NeaDigitra/Git-Smart.git cd Git-Smart -
Install Dependencies
npm install
-
Run Tests
npm test
-
Create a Branch
git checkout -b feat/your-feature-name
-
Make Changes
- Follow the existing code style
- Add tests for new functionality
- Update documentation as needed
-
Test Your Changes
npm test npm run test:unit npm run test:integration -
Commit Changes
git add . npm start # Use git-smart itself!
-
Push and Create PR
git push origin feat/your-feature-name
Then create a pull request on GitHub.
- Use meaningful variable and function names
- Follow existing patterns in the codebase
- Add JSDoc comments for public APIs
- Keep functions small and focused
- Write unit tests for new functions
- Add integration tests for major features
- Ensure all tests pass before submitting
Use Git-Smart itself to generate commit messages! The tool follows conventional commits:
feat(scope): description- New featuresfix(scope): description- Bug fixesdocs(scope): description- Documentation changestest(scope): description- Test additions/changesrefactor(scope): description- Code refactoring
src/
├── GitSmart.js # Main class
├── analyzers/ # Code analysis modules
├── generators/ # Message generation
└── utils/ # Utility functions
tests/
├── unit/ # Unit tests
├── integration/ # Integration tests
└── fixtures/ # Test data
- New Language Support: Add analysis for more programming languages
- Commit Patterns: Improve pattern recognition
- Performance: Optimize analysis algorithms
- Documentation: Improve examples and guides
- Bug Fixes: Fix reported issues
- Open an issue for discussion
- Check existing issues and PRs
- Follow the project's code of conduct
Thank you for contributing to Git-Smart!